BillingIntangibleExcludeDate.php 2.6 KB

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