vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/ContactAddress.php line 19

  1. <?php
  2. /*
  3.  * This file is part of Sulu.
  4.  *
  5.  * (c) Sulu GmbH
  6.  *
  7.  * This source file is subject to the MIT license that is bundled
  8.  * with this source code in the file LICENSE.
  9.  */
  10. namespace Sulu\Bundle\ContactBundle\Entity;
  11. use JMS\Serializer\Annotation\Exclude;
  12. /**
  13.  * ContactAddress.
  14.  */
  15. class ContactAddress
  16. {
  17.     /**
  18.      * @var bool
  19.      */
  20.     private $main;
  21.     /**
  22.      * @var int
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var Address
  27.      */
  28.     private $address;
  29.     /**
  30.      * @var ContactInterface
  31.      *
  32.      * @Exclude
  33.      */
  34.     private $contact;
  35.     /**
  36.      * Set main.
  37.      *
  38.      * @param bool $main
  39.      *
  40.      * @return ContactAddress
  41.      */
  42.     public function setMain($main)
  43.     {
  44.         $this->main $main;
  45.         return $this;
  46.     }
  47.     /**
  48.      * Get main.
  49.      *
  50.      * @return bool
  51.      */
  52.     public function getMain()
  53.     {
  54.         return $this->main;
  55.     }
  56.     /**
  57.      * Get id.
  58.      *
  59.      * @return int
  60.      */
  61.     public function getId()
  62.     {
  63.         return $this->id;
  64.     }
  65.     /**
  66.      * Set address.
  67.      *
  68.      * @return ContactAddress
  69.      */
  70.     public function setAddress(Address $address)
  71.     {
  72.         $this->address $address;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get address.
  77.      *
  78.      * @return Address
  79.      */
  80.     public function getAddress()
  81.     {
  82.         return $this->address;
  83.     }
  84.     /**
  85.      * Set contact.
  86.      *
  87.      * @return ContactAddress
  88.      */
  89.     public function setContact(ContactInterface $contact)
  90.     {
  91.         $this->contact $contact;
  92.         return $this;
  93.     }
  94.     /**
  95.      * Get contact.
  96.      *
  97.      * @return ContactInterface
  98.      */
  99.     public function getContact()
  100.     {
  101.         return $this->contact;
  102.     }
  103. }