src/Entity/LicenseStatus.php line 13

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\LicenseStatusRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\UX\Turbo\Attribute\Broadcast;
  7. #[ORM\Entity(repositoryClassLicenseStatusRepository::class)]
  8. #[ApiResource]
  9. #[Broadcast]
  10. class LicenseStatus
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'licenseStatuses')]
  17.     private ?Attendee $attendee null;
  18.     #[ORM\Column]
  19.     private ?bool $active null;
  20.     #[ORM\ManyToOne(inversedBy'licenseStatuses')]
  21.     private ?CourseLicense $courseLicense null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getAttendee(): ?Attendee
  27.     {
  28.         return $this->attendee;
  29.     }
  30.     public function setAttendee(?Attendee $attendee): self
  31.     {
  32.         $this->attendee $attendee;
  33.         return $this;
  34.     }
  35.     public function isActive(): ?bool
  36.     {
  37.         return $this->active;
  38.     }
  39.     public function setActive(bool $active): self
  40.     {
  41.         $this->active $active;
  42.         return $this;
  43.     }
  44.     public function getCourseLicense(): ?CourseLicense
  45.     {
  46.         return $this->courseLicense;
  47.     }
  48.     public function setCourseLicense(?CourseLicense $courseLicense): self
  49.     {
  50.         $this->courseLicense $courseLicense;
  51.         return $this;
  52.     }
  53. }