EducationCurriculum.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Education;
  4. use ApiPlatform\Core\Annotation\ApiResource;
  5. use App\Repository\Education\EducationCurriculumRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Curriculum éducatif; composé d'un cycle, d'une année et d'un niveau
  9. */
  10. #[ApiResource(
  11. collectionOperations: [],
  12. itemOperations: []
  13. )]
  14. #[ORM\Entity(repositoryClass: EducationCurriculumRepository::class)]
  15. class EducationCurriculum
  16. {
  17. #[ORM\Id]
  18. #[ORM\Column]
  19. #[ORM\GeneratedValue]
  20. private ?int $id = null;
  21. #[ORM\ManyToOne(inversedBy: 'educationCurriculums')]
  22. private ?EducationNotationConfig $educationNotationConfig;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function setEducationNotationConfig(?EducationNotationConfig $educationNotationConfig): self
  28. {
  29. $this->educationNotationConfig = $educationNotationConfig;
  30. return $this;
  31. }
  32. public function getEducationNotationConfig(): ?EducationNotationConfig
  33. {
  34. return $this->educationNotationConfig;
  35. }
  36. }