src/Entity/BreakRoomVideo.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\BreakRoomVideoRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBreakRoomVideoRepository::class)]
  7. #[ApiResource]
  8. class BreakRoomVideo
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'breakRoomVideos')]
  15.     private ?MediaObject $video null;
  16.     #[ORM\Column]
  17.     private ?bool $active null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getVideo(): ?MediaObject
  23.     {
  24.         return $this->video;
  25.     }
  26.     public function setVideo(?MediaObject $video): self
  27.     {
  28.         $this->video $video;
  29.         return $this;
  30.     }
  31.     public function isActive(): ?bool
  32.     {
  33.         return $this->active;
  34.     }
  35.     public function setActive(bool $active): self
  36.     {
  37.         $this->active $active;
  38.         return $this;
  39.     }
  40. }