vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/BankAccount.php line 21

  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 Doctrine\Common\Collections\ArrayCollection;
  12. use Doctrine\Common\Collections\Collection;
  13. use JMS\Serializer\Annotation\Exclude;
  14. /**
  15.  * BankAccount.
  16.  */
  17. class BankAccount
  18. {
  19.     /**
  20.      * @var string|null
  21.      */
  22.     private $bankName;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     private $bic;
  27.     /**
  28.      * @var string
  29.      */
  30.     private $iban;
  31.     /**
  32.      * @var bool
  33.      */
  34.     private $public false;
  35.     /**
  36.      * @var int
  37.      */
  38.     private $id;
  39.     /**
  40.      * @var Collection<int, AccountInterface>
  41.      *
  42.      * @Exclude
  43.      */
  44.     private $accounts;
  45.     /**
  46.      * @var Collection<int, ContactInterface>
  47.      */
  48.     private $contacts;
  49.     /**
  50.      * Constructor.
  51.      */
  52.     public function __construct()
  53.     {
  54.         $this->accounts = new ArrayCollection();
  55.         $this->contacts = new ArrayCollection();
  56.     }
  57.     /**
  58.      * Set bic.
  59.      *
  60.      * @param string|null $bic
  61.      *
  62.      * @return BankAccount
  63.      */
  64.     public function setBic($bic)
  65.     {
  66.         $this->bic $bic;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get bic.
  71.      *
  72.      * @return string|null
  73.      */
  74.     public function getBic()
  75.     {
  76.         return $this->bic;
  77.     }
  78.     /**
  79.      * Set iban.
  80.      *
  81.      * @param string $iban
  82.      *
  83.      * @return BankAccount
  84.      */
  85.     public function setIban($iban)
  86.     {
  87.         $this->iban $iban;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get iban.
  92.      *
  93.      * @return string
  94.      */
  95.     public function getIban()
  96.     {
  97.         return $this->iban;
  98.     }
  99.     /**
  100.      * Set public.
  101.      *
  102.      * @param bool $public
  103.      *
  104.      * @return BankAccount
  105.      */
  106.     public function setPublic($public)
  107.     {
  108.         $this->public $public;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get public.
  113.      *
  114.      * @return bool
  115.      */
  116.     public function getPublic()
  117.     {
  118.         return $this->public;
  119.     }
  120.     /**
  121.      * Get id.
  122.      *
  123.      * @return int
  124.      */
  125.     public function getId()
  126.     {
  127.         return $this->id;
  128.     }
  129.     /**
  130.      * Add accounts.
  131.      *
  132.      * @return BankAccount
  133.      */
  134.     public function addAccount(AccountInterface $accounts)
  135.     {
  136.         $this->accounts[] = $accounts;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Remove accounts.
  141.      */
  142.     public function removeAccount(AccountInterface $accounts)
  143.     {
  144.         $this->accounts->removeElement($accounts);
  145.     }
  146.     /**
  147.      * Get accounts.
  148.      *
  149.      * @return Collection<int, AccountInterface>
  150.      */
  151.     public function getAccounts()
  152.     {
  153.         return $this->accounts;
  154.     }
  155.     /**
  156.      * Set bankName.
  157.      *
  158.      * @param string|null $bankName
  159.      *
  160.      * @return BankAccount
  161.      */
  162.     public function setBankName($bankName)
  163.     {
  164.         $this->bankName $bankName;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get bankName.
  169.      *
  170.      * @return string|null
  171.      */
  172.     public function getBankName()
  173.     {
  174.         return $this->bankName;
  175.     }
  176.     /**
  177.      * Add contacts.
  178.      *
  179.      * @return BankAccount
  180.      */
  181.     public function addContact(ContactInterface $contacts)
  182.     {
  183.         $this->contacts[] = $contacts;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Remove contacts.
  188.      */
  189.     public function removeContact(ContactInterface $contacts)
  190.     {
  191.         $this->contacts->removeElement($contacts);
  192.     }
  193.     /**
  194.      * Get contacts.
  195.      *
  196.      * @return Collection<int, ContactInterface>
  197.      */
  198.     public function getContacts()
  199.     {
  200.         return $this->contacts;
  201.     }
  202. }