BillAccessDetail.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <?php
  2. namespace AppBundle\Entity\Billing;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Dunglas\ApiBundle\Annotation\Iri;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use AppBundle\Entity\Traits\TimestampableEntity;
  9. use AppBundle\Entity\Traits\CreatorUpdaterEntity;
  10. /**
  11. * Paramètres d'un Access pour une Bill
  12. *
  13. * @Iri("http://schema.org/BillAccessDetail")
  14. */
  15. #[ORM\Entity]
  16. class BillAccessDetail
  17. {
  18. use TimestampableEntity;
  19. use CreatorUpdaterEntity;
  20. /**
  21. * @var int
  22. */
  23. #[ORM\Column(type: 'integer')]
  24. #[ORM\Id]
  25. #[ORM\GeneratedValue(strategy: 'AUTO')]
  26. #[Groups(['billaccessdetail', 'billaccounting_list', 'bill_list', 'billcredit_list', 'build_bills'])]
  27. private $id;
  28. /**
  29. * @var int
  30. */
  31. #[ORM\Column(type: 'integer')]
  32. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billpayment_list_bill', 'billcredit_list_accessdetail'])]
  33. private $accessId;
  34. /**
  35. * @var string
  36. */
  37. #[ORM\Column(type: 'string', nullable: true)]
  38. #[Assert\Type(type: 'string')]
  39. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billpayment_list_bill', 'billcredit_list_accessdetail'])]
  40. private $customerId;
  41. /**
  42. * @var string
  43. *
  44. *
  45. */
  46. #[ORM\Column(type: 'string', nullable: true)]
  47. #[Assert\Type(type: 'string')]
  48. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  49. private $familyQuotientSliceName;
  50. /**
  51. * @var string
  52. */
  53. #[ORM\Column(type: 'string', nullable: true)]
  54. #[Assert\Type(type: 'string')]
  55. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  56. private $residenceAreaLabel;
  57. /**
  58. * @var string
  59. */
  60. #[ORM\Column(type: 'string', nullable: true)]
  61. #[Assert\Type(type: 'string')]
  62. #[Assert\Choice(callback: ['\AppBundle\Enum\Billing\PeriodicityPaymentEnum', 'toArray'])]
  63. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  64. private $periodicityPayment;
  65. /**
  66. * @var string
  67. */
  68. #[ORM\Column(type: 'string', nullable: true)]
  69. #[Assert\Type(type: 'string')]
  70. #[Assert\Choice(callback: ['\AppBundle\Enum\Billing\PaymentChoiceEnum', 'toArray'])]
  71. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  72. private $paymentChoice;
  73. /**
  74. * @var string
  75. */
  76. #[ORM\Column(type: 'string', nullable: true)]
  77. #[Assert\Type(type: 'string')]
  78. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  79. private $streetAddress;
  80. /**
  81. * @var string
  82. */
  83. #[ORM\Column(type: 'string', length: 20, nullable: true)]
  84. #[Assert\Type(type: 'string')]
  85. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  86. private $postalCode;
  87. /**
  88. * @var string
  89. */
  90. #[ORM\Column(type: 'string', nullable: true)]
  91. #[Assert\Type(type: 'string')]
  92. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  93. private $addressCity;
  94. /**
  95. * @var string
  96. */
  97. #[ORM\Column(type: 'string', nullable: true)]
  98. #[Assert\Type(type: 'string')]
  99. #[Assert\Length(max: 255, maxMessage: 'invalid-max-length')]
  100. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
  101. private $bankName;
  102. /**
  103. * @var string
  104. */
  105. #[ORM\Column(type: 'string', length: 11, nullable: true)]
  106. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
  107. private $bic;
  108. /**
  109. * @var string
  110. */
  111. #[ORM\Column(type: 'string', length: 34, nullable: true)]
  112. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
  113. private $iban;
  114. /**
  115. * @var string
  116. */
  117. #[ORM\Column(type: 'string', nullable: true)]
  118. #[Assert\Type(type: 'string')]
  119. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
  120. private $holder;
  121. /**
  122. * @var string
  123. */
  124. #[ORM\Column(type: 'string', length: 35, nullable: true)]
  125. #[Assert\Type(type: 'string')]
  126. #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
  127. #[Assert\Length(max: 35, maxMessage: 'invalid-max-length')]
  128. private $rum;
  129. /**
  130. * Constructor
  131. */
  132. public function __construct()
  133. {
  134. }
  135. /**
  136. * Sets id.
  137. *
  138. * @param int $id
  139. *
  140. * @return $this
  141. */
  142. public function setId($id)
  143. {
  144. $this->id = $id;
  145. return $this;
  146. }
  147. /**
  148. * Gets id.
  149. *
  150. * @return int
  151. */
  152. public function getId()
  153. {
  154. return $this->id;
  155. }
  156. /**
  157. * Set accessId
  158. *
  159. * @param integer $accessId
  160. *
  161. * @return BillAccessDetail
  162. */
  163. public function setAccessId($accessId)
  164. {
  165. $this->accessId = $accessId;
  166. return $this;
  167. }
  168. /**
  169. * Get accessId
  170. *
  171. * @return integer
  172. */
  173. public function getAccessId()
  174. {
  175. return $this->accessId;
  176. }
  177. /**
  178. * Set customerId
  179. *
  180. * @param string $customerId
  181. *
  182. * @return BillAccessDetail
  183. */
  184. public function setCustomerId($customerId)
  185. {
  186. $this->customerId = $customerId;
  187. return $this;
  188. }
  189. /**
  190. * Get customerId
  191. *
  192. * @return string
  193. */
  194. public function getCustomerId()
  195. {
  196. return $this->customerId;
  197. }
  198. /**
  199. * Set familyQuotientSliceName
  200. *
  201. * @param string $familyQuotientSliceName
  202. *
  203. * @return BillAccessDetail
  204. */
  205. public function setFamilyQuotientSliceName($familyQuotientSliceName)
  206. {
  207. $this->familyQuotientSliceName = $familyQuotientSliceName;
  208. return $this;
  209. }
  210. /**
  211. * Get familyQuotientSliceName
  212. *
  213. * @return string
  214. */
  215. public function getFamilyQuotientSliceName()
  216. {
  217. return $this->familyQuotientSliceName;
  218. }
  219. /**
  220. * Set residenceAreaLabel
  221. *
  222. * @param string $residenceAreaLabel
  223. *
  224. * @return BillAccessDetail
  225. */
  226. public function setResidenceAreaLabel($residenceAreaLabel)
  227. {
  228. $this->residenceAreaLabel = $residenceAreaLabel;
  229. return $this;
  230. }
  231. /**
  232. * Get residenceAreaLabel
  233. *
  234. * @return string
  235. */
  236. public function getResidenceAreaLabel()
  237. {
  238. return $this->residenceAreaLabel;
  239. }
  240. /**
  241. * Set periodicityPayment
  242. *
  243. * @param string $periodicityPayment
  244. *
  245. * @return BillAccessDetail
  246. */
  247. public function setPeriodicityPayment($periodicityPayment)
  248. {
  249. $this->periodicityPayment = $periodicityPayment;
  250. return $this;
  251. }
  252. /**
  253. * Get periodicityPayment
  254. *
  255. * @return string
  256. */
  257. public function getPeriodicityPayment()
  258. {
  259. return $this->periodicityPayment;
  260. }
  261. /**
  262. * Set paymentChoice
  263. *
  264. * @param string $paymentChoice
  265. *
  266. * @return BillAccessDetail
  267. */
  268. public function setPaymentChoice($paymentChoice)
  269. {
  270. $this->paymentChoice = $paymentChoice;
  271. return $this;
  272. }
  273. /**
  274. * Get paymentChoice
  275. *
  276. * @return string
  277. */
  278. public function getPaymentChoice()
  279. {
  280. return $this->paymentChoice;
  281. }
  282. /**
  283. * Set streetAddress
  284. *
  285. * @param string $streetAddress
  286. *
  287. * @return BillAccessDetail
  288. */
  289. public function setStreetAddress($streetAddress)
  290. {
  291. $this->streetAddress = $streetAddress;
  292. return $this;
  293. }
  294. /**
  295. * Get streetAddress
  296. *
  297. * @return string
  298. */
  299. public function getStreetAddress()
  300. {
  301. return $this->streetAddress;
  302. }
  303. /**
  304. * Set postalCode
  305. *
  306. * @param string $postalCode
  307. *
  308. * @return BillAccessDetail
  309. */
  310. public function setPostalCode($postalCode)
  311. {
  312. $this->postalCode = $postalCode;
  313. return $this;
  314. }
  315. /**
  316. * Get postalCode
  317. *
  318. * @return string
  319. */
  320. public function getPostalCode()
  321. {
  322. return $this->postalCode;
  323. }
  324. /**
  325. * Set addressCity
  326. *
  327. * @param string $addressCity
  328. *
  329. * @return BillAccessDetail
  330. */
  331. public function setAddressCity($addressCity)
  332. {
  333. $this->addressCity = $addressCity;
  334. return $this;
  335. }
  336. /**
  337. * Get addressCity
  338. *
  339. * @return string
  340. */
  341. public function getAddressCity()
  342. {
  343. return $this->addressCity;
  344. }
  345. /**
  346. * Set bankName
  347. *
  348. * @param string $bankName
  349. *
  350. * @return BillAccessDetail
  351. */
  352. public function setBankName($bankName)
  353. {
  354. $this->bankName = $bankName;
  355. return $this;
  356. }
  357. /**
  358. * Get bankName
  359. *
  360. * @return string
  361. */
  362. public function getBankName()
  363. {
  364. return $this->bankName;
  365. }
  366. /**
  367. * Set bic
  368. *
  369. * @param string $bic
  370. *
  371. * @return BillAccessDetail
  372. */
  373. public function setBic($bic)
  374. {
  375. $this->bic = $bic;
  376. return $this;
  377. }
  378. /**
  379. * Get bic
  380. *
  381. * @return string
  382. */
  383. public function getBic()
  384. {
  385. return $this->bic;
  386. }
  387. /**
  388. * Set iban
  389. *
  390. * @param string $iban
  391. *
  392. * @return BillAccessDetail
  393. */
  394. public function setIban($iban)
  395. {
  396. $this->iban = $iban;
  397. return $this;
  398. }
  399. /**
  400. * Get iban
  401. *
  402. * @return string
  403. */
  404. public function getIban()
  405. {
  406. return $this->iban;
  407. }
  408. /**
  409. * Set holder
  410. *
  411. * @param string $holder
  412. *
  413. * @return BillAccessDetail
  414. */
  415. public function setHolder($holder)
  416. {
  417. $this->holder = $holder;
  418. return $this;
  419. }
  420. /**
  421. * Get holder
  422. *
  423. * @return string
  424. */
  425. public function getHolder()
  426. {
  427. return $this->holder;
  428. }
  429. /**
  430. * Set rum
  431. *
  432. * @param string $rum
  433. *
  434. * @return BillAccessDetail
  435. */
  436. public function setRum($rum)
  437. {
  438. $this->rum = $rum;
  439. return $this;
  440. }
  441. /**
  442. * Get rum
  443. *
  444. * @return string
  445. */
  446. public function getRum()
  447. {
  448. return $this->rum;
  449. }
  450. }