src/Entity/IceCreamVideos.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IceCreamVideosRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table(name'ice_cream_videos')]
  6. #[ORM\Entity(repositoryClassIceCreamVideosRepository::class)]
  7. class IceCreamVideos
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(type'string'nullabletrue)]
  14.     private ?string $video null;
  15.     public function getId(): ?int
  16.     {
  17.         return $this->id;
  18.     }
  19.     public function getVideo(): ?string
  20.     {
  21.         return $this->video;
  22.     }
  23.     public function setVideo(?string $video): void
  24.     {
  25.         $this->video $video;
  26.     }
  27. }