CycleByEducation.php 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Education;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Classe ... qui ...
  8. */
  9. #[Auditable]
  10. #[ORM\Entity]
  11. class CycleByEducation
  12. {
  13. #[ORM\Id]
  14. #[ORM\Column]
  15. #[ORM\GeneratedValue]
  16. private ?int $id = null;
  17. #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
  18. private Education $education;
  19. #[ORM\ManyToOne(inversedBy: 'cycleByEducations')]
  20. private Cycle $cycle;
  21. public function getId(): ?int
  22. {
  23. return $this->id;
  24. }
  25. public function getEducation(): ?Education
  26. {
  27. return $this->education;
  28. }
  29. public function setEducation(?Education $education): self
  30. {
  31. $this->education = $education;
  32. return $this;
  33. }
  34. public function getCycle(): ?Cycle
  35. {
  36. return $this->cycle;
  37. }
  38. public function setCycle(?Cycle $cycle): self
  39. {
  40. $this->cycle = $cycle;
  41. return $this;
  42. }
  43. }