src/Entity/StudioVideo.php line 11
<?phpnamespace App\Entity;use App\Repository\StudioVideoRepository;use DateTimeImmutable;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: StudioVideoRepository::class)]class StudioVideo{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, nullable: true)]#[Groups(['studio:read'])]private ?string $coverImg = null;#[ORM\Column(length: 255)]#[Groups(['studio:read'])]private ?string $filename = null;#[ORM\Column(length: 255)]#[Groups(['studio:read'])]private ?string $originalname = null;#[ORM\Column(length: 255)]#[Groups(['studio:read'])]private ?string $mimeType = null;#[ORM\Column(length: 255)]#[Groups(['studio:read'])]private ?string $fileSize = null;#[ORM\Column(length: 255)]#[Groups(['studio:read'])]private ?string $fileSizeConvert = null;#[ORM\ManyToOne(inversedBy: 'studioVideo')]#[ORM\JoinColumn(nullable: true)]protected ?Studio $studio;#[ORM\Column]private ?DateTimeImmutable $createdAt = null;#[ORM\Column(nullable: true)]#[Groups(['studio:read'])]private ?int $coverImgId = null;public function __construct(){$this->createdAt = new DateTimeImmutable();}public function getId(): ?int{return $this->id;}public function getFilename(): ?string{return $this->filename;}public function setFilename(string $filename): self{$this->filename = $filename;return $this;}public function getOriginalname(): ?string{return $this->originalname;}public function setOriginalname(string $originalname): self{$this->originalname = $originalname;return $this;}public function getMimeType(): ?string{return $this->mimeType;}public function setMimeType(string $mimeType): self{$this->mimeType = $mimeType;return $this;}public function getFileSizeConvert(): ?string{return $this->fileSizeConvert;}public function setFileSizeConvert(string $fileSizeConvert): self{$this->fileSizeConvert = $fileSizeConvert;return $this;}public function getCreatedAt(): ?DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getStudio(): ?Studio{return $this->studio;}public function setStudio(?Studio $studio): self{$this->studio = $studio;return $this;}public function getFileSize(): ?string{return $this->fileSize;}public function setFileSize(string $fileSize): self{$this->fileSize = $fileSize;return $this;}public function getCoverImg(): ?string{return $this->coverImg;}public function setCoverImg(?string $coverImg): self{$this->coverImg = $coverImg;return $this;}public function getCoverImgId(): ?int{return $this->coverImgId;}public function setCoverImgId(int $coverImgId): self{$this->coverImgId = $coverImgId;return $this;}}