vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/AccountAddress.php line 17

  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. /**
  12.  * AccountAddress.
  13.  */
  14. class AccountAddress
  15. {
  16.     /**
  17.      * @var bool
  18.      */
  19.     private $main;
  20.     /**
  21.      * @var int
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var Address
  26.      */
  27.     private $address;
  28.     /**
  29.      * @var AccountInterface
  30.      */
  31.     private $account;
  32.     /**
  33.      * Set main.
  34.      *
  35.      * @param bool $main
  36.      *
  37.      * @return AccountAddress
  38.      */
  39.     public function setMain($main)
  40.     {
  41.         $this->main $main;
  42.         return $this;
  43.     }
  44.     /**
  45.      * Get main.
  46.      *
  47.      * @return bool
  48.      */
  49.     public function getMain()
  50.     {
  51.         return $this->main;
  52.     }
  53.     /**
  54.      * Get id.
  55.      *
  56.      * @return int
  57.      */
  58.     public function getId()
  59.     {
  60.         return $this->id;
  61.     }
  62.     /**
  63.      * Set address.
  64.      *
  65.      * @return AccountAddress
  66.      */
  67.     public function setAddress(Address $address)
  68.     {
  69.         $this->address $address;
  70.         return $this;
  71.     }
  72.     /**
  73.      * Get address.
  74.      *
  75.      * @return Address
  76.      */
  77.     public function getAddress()
  78.     {
  79.         return $this->address;
  80.     }
  81.     /**
  82.      * Set account.
  83.      *
  84.      * @return AccountAddress
  85.      */
  86.     public function setAccount(AccountInterface $account)
  87.     {
  88.         $this->account $account;
  89.         return $this;
  90.     }
  91.     /**
  92.      * Get account.
  93.      *
  94.      * @return AccountInterface
  95.      */
  96.     public function getAccount()
  97.     {
  98.         return $this->account;
  99.     }
  100. }