BillingIntangibleExcludeDate.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. #[ApiResource(
  14. collectionOperations:[],
  15. itemOperations: [
  16. "get" => ["security" => "is_granted('ROLE_ADMIN')"]
  17. ]
  18. )]
  19. class BillingIntangibleExcludeDate
  20. {
  21. #[ORM\Id]
  22. #[ORM\Column]
  23. #[ORM\GeneratedValue]
  24. private ?int $id = null;
  25. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  26. private AccessIntangible $accessIntangible;
  27. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  28. private AccessFictionalIntangible $accessFictionalIntangible;
  29. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  30. private EducationalProjectIntangible $educationalProjectIntangible;
  31. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  32. private EquipmentLoan $equipmentLoan;
  33. #[ORM\ManyToOne(cascade: ['persist'], inversedBy: 'billingIntangibleExcludeDates')]
  34. private Bill $bill;
  35. public function getId(): ?int
  36. {
  37. return $this->id;
  38. }
  39. public function getAccessIntangible(): ?AccessIntangible
  40. {
  41. return $this->accessIntangible;
  42. }
  43. public function setAccessIntangible(?AccessIntangible $accessIntangible): self
  44. {
  45. $this->accessIntangible = $accessIntangible;
  46. return $this;
  47. }
  48. public function getAccessFictionalIntangible(): ?AccessFictionalIntangible
  49. {
  50. return $this->accessFictionalIntangible;
  51. }
  52. public function setAccessFictionalIntangible(?AccessFictionalIntangible $accessFictionalIntangible): self
  53. {
  54. $this->accessFictionalIntangible = $accessFictionalIntangible;
  55. return $this;
  56. }
  57. public function getEducationalProjectIntangible(): ?EducationalProjectIntangible
  58. {
  59. return $this->educationalProjectIntangible;
  60. }
  61. public function setEducationalProjectIntangible(?EducationalProjectIntangible $educationalProjectIntangible): self
  62. {
  63. $this->educationalProjectIntangible = $educationalProjectIntangible;
  64. return $this;
  65. }
  66. public function getEquipmentLoan(): ?EquipmentLoan
  67. {
  68. return $this->equipmentLoan;
  69. }
  70. public function setEquipmentLoan(?EquipmentLoan $equipmentLoan): self
  71. {
  72. $this->equipmentLoan = $equipmentLoan;
  73. return $this;
  74. }
  75. public function getBill(): ?Bill
  76. {
  77. return $this->bill;
  78. }
  79. public function setBill(?Bill $bill): self
  80. {
  81. $this->bill = $bill;
  82. return $this;
  83. }
  84. }