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

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