src/Entity/CourseEvaluation.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\CourseEvaluationRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\UX\Turbo\Attribute\Broadcast;
  8. #[ORM\Entity(repositoryClassCourseEvaluationRepository::class)]
  9. #[Broadcast]
  10. #[ApiResource]
  11. class CourseEvaluation
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $content null;
  19.     #[ORM\Column]
  20.     private ?float $score null;
  21.     #[ORM\Column]
  22.     private ?bool $active null;
  23.     #[ORM\ManyToOne(inversedBy'courseEvaluations')]
  24.     private ?Course $course null;
  25.     #[ORM\ManyToOne(inversedBy'courseEvaluations')]
  26.     private ?Attendee $attendee null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getContent(): ?string
  32.     {
  33.         return $this->content;
  34.     }
  35.     public function setContent(string $content): self
  36.     {
  37.         $this->content $content;
  38.         return $this;
  39.     }
  40.     public function getScore(): ?float
  41.     {
  42.         return $this->score;
  43.     }
  44.     public function setScore(float $score): self
  45.     {
  46.         $this->score $score;
  47.         return $this;
  48.     }
  49.     public function isActive(): ?bool
  50.     {
  51.         return $this->active;
  52.     }
  53.     public function setActive(bool $active): self
  54.     {
  55.         $this->active $active;
  56.         return $this;
  57.     }
  58.     public function getCourse(): ?Course
  59.     {
  60.         return $this->course;
  61.     }
  62.     public function setCourse(?Course $course): self
  63.     {
  64.         $this->course $course;
  65.         return $this;
  66.     }
  67.     public function getAttendee(): ?Attendee
  68.     {
  69.         return $this->attendee;
  70.     }
  71.     public function setAttendee(?Attendee $attendee): self
  72.     {
  73.         $this->attendee $attendee;
  74.         return $this;
  75.     }
  76. }