BillingIntangibleExcludeDate.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. use ApiPlatform\Core\Annotation\ApiResource;
  5. use App\Entity\Product\EquipmentLoan;
  6. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * Classe ... qui ...
  10. */
  11. #[Auditable]
  12. #[ORM\Entity]
  13. // TODO: revoir la sécurité
  14. #[ApiResource(
  15. collectionOperations:[
  16. "get"
  17. ],
  18. itemOperations: [
  19. "get"
  20. ]
  21. )]
  22. class BillingIntangibleExcludeDate
  23. {
  24. #[ORM\Id]
  25. #[ORM\Column]
  26. #[ORM\GeneratedValue]
  27. private ?int $id = null;
  28. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  29. private AccessIntangible $accessIntangible;
  30. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  31. private AccessFictionalIntangible $accessFictionalIntangible;
  32. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  33. private EducationalProjectIntangible $educationalProjectIntangible;
  34. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  35. private EquipmentLoan $equipmentLoan;
  36. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  37. private Bill $bill;
  38. public function getId(): ?int
  39. {
  40. return $this->id;
  41. }
  42. public function getAccessIntangible(): ?AccessIntangible
  43. {
  44. return $this->accessIntangible;
  45. }
  46. public function setAccessIntangible(?AccessIntangible $accessIntangible): self
  47. {
  48. $this->accessIntangible = $accessIntangible;
  49. return $this;
  50. }
  51. public function getAccessFictionalIntangible(): ?AccessFictionalIntangible
  52. {
  53. return $this->accessFictionalIntangible;
  54. }
  55. public function setAccessFictionalIntangible(?AccessFictionalIntangible $accessFictionalIntangible): self
  56. {
  57. $this->accessFictionalIntangible = $accessFictionalIntangible;
  58. return $this;
  59. }
  60. public function getEducationalProjectIntangible(): ?EducationalProjectIntangible
  61. {
  62. return $this->educationalProjectIntangible;
  63. }
  64. public function setEducationalProjectIntangible(?EducationalProjectIntangible $educationalProjectIntangible): self
  65. {
  66. $this->educationalProjectIntangible = $educationalProjectIntangible;
  67. return $this;
  68. }
  69. public function getEquipmentLoan(): ?EquipmentLoan
  70. {
  71. return $this->equipmentLoan;
  72. }
  73. public function setEquipmentLoan(?EquipmentLoan $equipmentLoan): self
  74. {
  75. $this->equipmentLoan = $equipmentLoan;
  76. return $this;
  77. }
  78. public function getBill(): ?Bill
  79. {
  80. return $this->bill;
  81. }
  82. public function setBill(?Bill $bill): self
  83. {
  84. $this->bill = $bill;
  85. return $this;
  86. }
  87. }