src/Entity/Videos.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\VideosRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\UploadedFile;
  8. // Symfony\Component\HttpFoundation\File\UploadedFile
  9. #[ORM\Entity(repositoryClassVideosRepository::class)]
  10. class Videos
  11. {
  12.     use CreatedAtTrait;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $name null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length255)]
  22.     private ?string $slug null;
  23.     #[ORM\ManyToOne(inversedBy'videos')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private ?Users $users null;
  26.     #[ORM\ManyToOne(inversedBy'videos')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?CategoriesVideos $categoriesvideos null;
  29.     #[ORM\Column]
  30.     private ?bool $playlist null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $namePlaylist null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $homeAutorisation null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?bool $bannerAutorisation null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?bool $publicityAutorisation null;
  39.     #[ORM\Column(length255)]
  40.     private ?string $videoFileName null;
  41.     /* #[ORM\Column(type: Types::TEXT)]
  42.     private ?string $videoFileName = null;  */
  43.     public function __construct()
  44.     {
  45.         $this->created_at = new \DateTimeImmutable();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): static
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getDescription(): ?string
  61.     {
  62.         return $this->description;
  63.     }
  64.     public function setDescription(string $description): static
  65.     {
  66.         $this->description $description;
  67.         return $this;
  68.     }
  69.     public function getSlug(): ?string
  70.     {
  71.         return $this->slug;
  72.     }
  73.     public function setSlug(string $slug): static
  74.     {
  75.         $this->slug $slug;
  76.         return $this;
  77.     }
  78.     public function getUsers(): ?Users
  79.     {
  80.         return $this->users;
  81.     }
  82.     public function setUsers(?Users $users): static
  83.     {
  84.         $this->users $users;
  85.         return $this;
  86.     }
  87.     public function getCategoriesvideos(): ?CategoriesVideos
  88.     {
  89.         return $this->categoriesvideos;
  90.     }
  91.     public function setCategoriesvideos(?CategoriesVideos $categoriesvideos): static
  92.     {
  93.         $this->categoriesvideos $categoriesvideos;
  94.         return $this;
  95.     }
  96.     public function isPlaylist(): ?bool
  97.     {
  98.         return $this->playlist;
  99.     }
  100.     public function setPlaylist(bool $playlist): static
  101.     {
  102.         $this->playlist $playlist;
  103.         return $this;
  104.     }
  105.     public function getNamePlaylist(): ?string
  106.     {
  107.         return $this->namePlaylist;
  108.     }
  109.     public function setNamePlaylist(?string $namePlaylist): static
  110.     {
  111.         $this->namePlaylist $namePlaylist;
  112.         return $this;
  113.     }
  114.     public function isHomeAutorisation(): ?bool
  115.     {
  116.         return $this->homeAutorisation;
  117.     }
  118.     public function setHomeAutorisation(bool $homeAutorisation): static
  119.     {
  120.         $this->homeAutorisation $homeAutorisation;
  121.         return $this;
  122.     }
  123.     public function isBannerAutorisation(): ?bool
  124.     {
  125.         return $this->bannerAutorisation;
  126.     }
  127.     public function setBannerAutorisation(bool $bannerAutorisation): static
  128.     {
  129.         $this->bannerAutorisation $bannerAutorisation;
  130.         return $this;
  131.     }
  132.     public function isPublicityAutorisation(): ?bool
  133.     {
  134.         return $this->publicityAutorisation;
  135.     }
  136.     public function setPublicityAutorisation(bool $publicityAutorisation): static
  137.     {
  138.         $this->publicityAutorisation $publicityAutorisation;
  139.         return $this;
  140.     }
  141.     public function getVideoFileName(): ?string
  142.     {
  143.         return $this->videoFileName;
  144.     }
  145.     public function setVideoFileName(string $videoFileName): static
  146.     {
  147.         $this->videoFileName $videoFileName///////
  148.         return $this;
  149.     }
  150.        
  151. }