BillScheduleDate.php 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * TODO: documenter.
  8. */
  9. #[ApiResource(operations: [])]
  10. #[ORM\Entity]
  11. class BillScheduleDate
  12. {
  13. #[ORM\Id]
  14. #[ORM\Column]
  15. #[ORM\GeneratedValue]
  16. private int $id;
  17. #[ORM\ManyToOne(targetEntity: BillSchedule::class, cascade: ['persist'], inversedBy: 'scheduleDates')]
  18. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  19. protected mixed $billSchedule;
  20. public function getId(): int
  21. {
  22. return $this->id;
  23. }
  24. public function setId(int $id): self
  25. {
  26. $this->id = $id;
  27. return $this;
  28. }
  29. public function getBillSchedule(): mixed
  30. {
  31. return $this->billSchedule;
  32. }
  33. public function setBillSchedule(mixed $billSchedule): self
  34. {
  35. $this->billSchedule = $billSchedule;
  36. return $this;
  37. }
  38. }