PesSetting.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <?php
  2. namespace AppBundle\Entity\Billing;
  3. use AppBundle\Entity\Organization\Organization;
  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. use AppBundle\Annotation\DefaultField;
  11. /**
  12. *
  13. * (Plus utilisée, à confirmer)
  14. *
  15. * @Iri("http://schema.org/PesSettings")
  16. */
  17. #[ORM\Entity]
  18. class PesSetting
  19. {
  20. use TimestampableEntity;
  21. use CreatorUpdaterEntity;
  22. /**
  23. * @var int
  24. */
  25. #[ORM\Column(type: 'integer')]
  26. #[ORM\Id]
  27. #[ORM\GeneratedValue(strategy: 'AUTO')]
  28. #[Groups(['pessetting'])]
  29. private $id;
  30. /**
  31. * @var Organization
  32. *
  33. * @DefaultField
  34. */
  35. #[ORM\OneToOne(targetEntity: 'AppBundle\Entity\Organization\Organization', inversedBy: 'pesSetting', fetch: 'EAGER')]
  36. #[ORM\JoinColumn(nullable: false)]
  37. #[Assert\NotNull]
  38. #[Groups(['pessetting'])]
  39. private $organization;
  40. /**
  41. * @var string
  42. */
  43. #[ORM\Column(type: 'string', length: 14, nullable: true)]
  44. #[Assert\Length(max: 14, maxMessage: 'invalid-max-length')]
  45. #[Assert\Type(type: 'string')]
  46. #[Groups(['pessetting'])]
  47. private $idPost;
  48. /**
  49. * @var string
  50. */
  51. #[ORM\Column(type: 'string', nullable: true)]
  52. #[Assert\Type(type: 'string')]
  53. #[Groups(['pessetting'])]
  54. private $idColl;
  55. /**
  56. * @var string
  57. */
  58. #[ORM\Column(type: 'string', nullable: true)]
  59. #[Assert\Type(type: 'string')]
  60. #[Groups(['pessetting'])]
  61. private $idCollTipi;
  62. /**
  63. * @var string
  64. */
  65. #[ORM\Column(type: 'string', nullable: true)]
  66. #[Assert\Type(type: 'string')]
  67. #[Groups(['pessetting'])]
  68. private $codColl;
  69. /**
  70. * @var string
  71. */
  72. #[ORM\Column(type: 'string', nullable: true)]
  73. #[Assert\Type(type: 'string')]
  74. #[Groups(['pessetting'])]
  75. private $codBud;
  76. /**
  77. * @var string
  78. */
  79. #[ORM\Column(type: 'string', nullable: true)]
  80. #[Assert\Type(type: 'string')]
  81. #[Groups(['pessetting'])]
  82. private $codProd;
  83. /**
  84. * @var string
  85. */
  86. #[ORM\Column(type: 'string', nullable: true)]
  87. #[Assert\Type(type: 'string')]
  88. #[Groups(['pessetting'])]
  89. private $libelleColBud;
  90. /**
  91. * @var string
  92. */
  93. #[ORM\Column(type: 'string', nullable: true)]
  94. #[Assert\Type(type: 'string')]
  95. #[Groups(['pessetting'])]
  96. private $gestionnaire;
  97. /**
  98. * @var string
  99. */
  100. #[ORM\Column(type: 'string', nullable: true)]
  101. #[Assert\Type(type: 'string')]
  102. #[Groups(['pessetting'])]
  103. private $nameComptable;
  104. /**
  105. * @var string
  106. */
  107. #[ORM\Column(type: 'string', nullable: true)]
  108. #[Assert\Type(type: 'string')]
  109. #[Groups(['pessetting'])]
  110. private $creditorIban;
  111. /**
  112. * @var string
  113. */
  114. #[ORM\Column(type: 'string', nullable: true)]
  115. #[Assert\Type(type: 'string')]
  116. #[Groups(['pessetting'])]
  117. private $creditorBic;
  118. /**
  119. * @var string
  120. */
  121. #[ORM\Column(type: 'string', nullable: true)]
  122. #[Assert\Type(type: 'string')]
  123. #[Groups(['pessetting'])]
  124. private $creditorIcs;
  125. /**
  126. * @var string
  127. */
  128. #[ORM\Column(type: 'string', nullable: true)]
  129. #[Assert\Type(type: 'string')]
  130. #[Groups(['pessetting'])]
  131. private $creditorName;
  132. /**
  133. * @var string
  134. */
  135. #[ORM\Column(type: 'string', nullable: true)]
  136. #[Assert\Type(type: 'string')]
  137. #[Groups(['pessetting'])]
  138. private $creditorLineOneAddress;
  139. /**
  140. * @var string
  141. */
  142. #[ORM\Column(type: 'string', nullable: true)]
  143. #[Assert\Type(type: 'string')]
  144. #[Groups(['pessetting'])]
  145. private $creditorLineTwoAddress;
  146. /**
  147. * @var string
  148. */
  149. #[ORM\Column(type: 'string', nullable: true)]
  150. #[Assert\Type(type: 'string')]
  151. #[Groups(['pessetting'])]
  152. private $creditorPublicInstitution;
  153. /**
  154. * @var string
  155. */
  156. #[ORM\Column(type: 'string', nullable: true)]
  157. #[Assert\Type(type: 'string')]
  158. #[Groups(['pessetting'])]
  159. private $creditorType;
  160. /**
  161. * Get id
  162. *
  163. * @return integer
  164. */
  165. public function getId()
  166. {
  167. return $this->id;
  168. }
  169. /**
  170. * Set organization
  171. *
  172. * @param \AppBundle\Entity\Organization\Organization $organization
  173. *
  174. * @return PesSetting
  175. */
  176. public function setOrganization(\AppBundle\Entity\Organization\Organization $organization)
  177. {
  178. $this->organization = $organization;
  179. return $this;
  180. }
  181. /**
  182. * Get organization
  183. *
  184. * @return \AppBundle\Entity\Organization\Organization
  185. */
  186. public function getOrganization()
  187. {
  188. return $this->organization;
  189. }
  190. /**
  191. * Set idPost
  192. *
  193. * @param string $idPost
  194. *
  195. * @return PesSetting
  196. */
  197. public function setIdPost($idPost)
  198. {
  199. $this->idPost = $idPost;
  200. return $this;
  201. }
  202. /**
  203. * Get idPost
  204. *
  205. * @return string
  206. */
  207. public function getIdPost()
  208. {
  209. return $this->idPost;
  210. }
  211. /**
  212. * Set idColl
  213. *
  214. * @param string $idColl
  215. *
  216. * @return PesSetting
  217. */
  218. public function setIdColl($idColl)
  219. {
  220. $this->idColl = $idColl;
  221. return $this;
  222. }
  223. /**
  224. * Get idColl
  225. *
  226. * @return string
  227. */
  228. public function getIdColl()
  229. {
  230. return $this->idColl;
  231. }
  232. /**
  233. * Set idCollTipi
  234. *
  235. * @param string $idCollTipi
  236. *
  237. * @return PesSetting
  238. */
  239. public function setIdCollTipi($idCollTipi)
  240. {
  241. $this->idCollTipi = $idCollTipi;
  242. return $this;
  243. }
  244. /**
  245. * Get idCollTipi
  246. *
  247. * @return string
  248. */
  249. public function getIdCollTipi()
  250. {
  251. return $this->idCollTipi;
  252. }
  253. /**
  254. * Set codColl
  255. *
  256. * @param string $codColl
  257. *
  258. * @return PesSetting
  259. */
  260. public function setCodColl($codColl)
  261. {
  262. $this->codColl = $codColl;
  263. return $this;
  264. }
  265. /**
  266. * Get codColl
  267. *
  268. * @return string
  269. */
  270. public function getCodColl()
  271. {
  272. return $this->codColl;
  273. }
  274. /**
  275. * Set codBud
  276. *
  277. * @param string $codBud
  278. *
  279. * @return PesSetting
  280. */
  281. public function setCodBud($codBud)
  282. {
  283. $this->codBud = $codBud;
  284. return $this;
  285. }
  286. /**
  287. * Get codBud
  288. *
  289. * @return string
  290. */
  291. public function getCodBud()
  292. {
  293. return $this->codBud;
  294. }
  295. /**
  296. * Set codProd
  297. *
  298. * @param string $codProd
  299. *
  300. * @return PesSetting
  301. */
  302. public function setCodProd($codProd)
  303. {
  304. $this->codProd = $codProd;
  305. return $this;
  306. }
  307. /**
  308. * Get codProd
  309. *
  310. * @return string
  311. */
  312. public function getCodProd()
  313. {
  314. return $this->codProd;
  315. }
  316. /**
  317. * Get codProdPayFip
  318. *
  319. * @return string
  320. */
  321. public function getCodProdPayFip()
  322. {
  323. return mb_substr($this->codProd, 0, 2);
  324. }
  325. /**
  326. * Set libelleColBud
  327. *
  328. * @param string $libelleColBud
  329. *
  330. * @return PesSetting
  331. */
  332. public function setLibelleColBud($libelleColBud)
  333. {
  334. $this->libelleColBud = $libelleColBud;
  335. return $this;
  336. }
  337. /**
  338. * Get libelleColBud
  339. *
  340. * @return string
  341. */
  342. public function getLibelleColBud()
  343. {
  344. return $this->libelleColBud;
  345. }
  346. /**
  347. * Set gestionnaire
  348. *
  349. * @param string $gestionnaire
  350. *
  351. * @return PesSetting
  352. */
  353. public function setGestionnaire($gestionnaire)
  354. {
  355. $this->gestionnaire = $gestionnaire;
  356. return $this;
  357. }
  358. /**
  359. * Get gestionnaire
  360. *
  361. * @return string
  362. */
  363. public function getGestionnaire()
  364. {
  365. return $this->gestionnaire;
  366. }
  367. /**
  368. * Set nameComptable
  369. *
  370. * @param string $nameComptable
  371. *
  372. * @return PesSetting
  373. */
  374. public function setNameComptable($nameComptable)
  375. {
  376. $this->nameComptable = $nameComptable;
  377. return $this;
  378. }
  379. /**
  380. * Get nameComptable
  381. *
  382. * @return string
  383. */
  384. public function getNameComptable()
  385. {
  386. return $this->nameComptable;
  387. }
  388. /**
  389. * Set creditorIban
  390. *
  391. * @param string $creditorIban
  392. *
  393. * @return PesSetting
  394. */
  395. public function setCreditorIban($creditorIban)
  396. {
  397. $this->creditorIban = $creditorIban;
  398. return $this;
  399. }
  400. /**
  401. * Get creditorIban
  402. *
  403. * @return string
  404. */
  405. public function getCreditorIban()
  406. {
  407. return $this->creditorIban;
  408. }
  409. /**
  410. * Set creditorBic
  411. *
  412. * @param string $creditorBic
  413. *
  414. * @return PesSetting
  415. */
  416. public function setCreditorBic($creditorBic)
  417. {
  418. $this->creditorBic = $creditorBic;
  419. return $this;
  420. }
  421. /**
  422. * Get creditorBic
  423. *
  424. * @return string
  425. */
  426. public function getCreditorBic()
  427. {
  428. return $this->creditorBic;
  429. }
  430. /**
  431. * Set creditorIcs
  432. *
  433. * @param string $creditorIcs
  434. *
  435. * @return PesSetting
  436. */
  437. public function setCreditorIcs($creditorIcs)
  438. {
  439. $this->creditorIcs = $creditorIcs;
  440. return $this;
  441. }
  442. /**
  443. * Get creditorIcs
  444. *
  445. * @return string
  446. */
  447. public function getCreditorIcs()
  448. {
  449. return $this->creditorIcs;
  450. }
  451. /**
  452. * Set creditorLineOneAddress
  453. *
  454. * @param string $creditorLineOneAddress
  455. *
  456. * @return PesSetting
  457. */
  458. public function setCreditorLineOneAddress($creditorLineOneAddress)
  459. {
  460. $this->creditorLineOneAddress = $creditorLineOneAddress;
  461. return $this;
  462. }
  463. /**
  464. * Get creditorLineOneAddress
  465. *
  466. * @return string
  467. */
  468. public function getCreditorLineOneAddress()
  469. {
  470. return $this->creditorLineOneAddress;
  471. }
  472. /**
  473. * Set creditorLineTwoAddress
  474. *
  475. * @param string $creditorLineTwoAddress
  476. *
  477. * @return PesSetting
  478. */
  479. public function setCreditorLineTwoAddress($creditorLineTwoAddress)
  480. {
  481. $this->creditorLineTwoAddress = $creditorLineTwoAddress;
  482. return $this;
  483. }
  484. /**
  485. * Get creditorLineTwoAddress
  486. *
  487. * @return string
  488. */
  489. public function getCreditorLineTwoAddress()
  490. {
  491. return $this->creditorLineTwoAddress;
  492. }
  493. /**
  494. * Set creditorPublicInstitution
  495. *
  496. * @param string $creditorPublicInstitution
  497. *
  498. * @return PesSetting
  499. */
  500. public function setCreditorPublicInstitution($creditorPublicInstitution)
  501. {
  502. $this->creditorPublicInstitution = $creditorPublicInstitution;
  503. return $this;
  504. }
  505. /**
  506. * Get creditorPublicInstitution
  507. *
  508. * @return string
  509. */
  510. public function getCreditorPublicInstitution()
  511. {
  512. return $this->creditorPublicInstitution;
  513. }
  514. /**
  515. * Set creditorType
  516. *
  517. * @param string $creditorType
  518. *
  519. * @return PesSetting
  520. */
  521. public function setCreditorType($creditorType)
  522. {
  523. $this->creditorType = $creditorType;
  524. return $this;
  525. }
  526. /**
  527. * Get creditorType
  528. *
  529. * @return string
  530. */
  531. public function getCreditorType()
  532. {
  533. return $this->creditorType;
  534. }
  535. /**
  536. * Set creditorName
  537. *
  538. * @param string $creditorName
  539. *
  540. * @return PesSetting
  541. */
  542. public function setCreditorName($creditorName)
  543. {
  544. $this->creditorName = $creditorName;
  545. return $this;
  546. }
  547. /**
  548. * Get creditorName
  549. *
  550. * @return string
  551. */
  552. public function getCreditorName()
  553. {
  554. return $this->creditorName;
  555. }
  556. }