<?php
namespace App\Entity;
use App\Repository\MediaRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MediaRepository::class)]
class Media
{
const TYPE_MEDIA_BANNER_APP = "banner_app";
const TYPE_MEDIA_BANNER_PC = "bannerPc";
const TYPE_MEDIA_BANNER_TABLET = "banner_tablet";
const TYPE_MEDIA_FORM_REQUEST = "form_request";
const TYPE_MEDIA_GUIDE = "pdfGuide";
const TYPE_MEDIA_FRONT_FORM = "front_form";
const TYPE_MEDIA_VIGNETTE_FORM_REQUEST = "vignette_form_request";
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $origin = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $idOrigin = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $file = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $title = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $extension = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $taille = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $deletedAt = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $typeMedia = null;
#[ORM\Column(nullable: true)]
private ?int $position = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $path = null;
public function getId(): ?int
{
return $this->id;
}
public function getOrigin(): ?string
{
return $this->origin;
}
public function setOrigin(?string $origin): self
{
$this->origin = $origin;
return $this;
}
public function getIdOrigin(): ?string
{
return $this->idOrigin;
}
public function setIdOrigin(?string $idOrigin): self
{
$this->idOrigin = $idOrigin;
return $this;
}
public function getFile(): ?string
{
return $this->file;
}
public function setFile(?string $file): self
{
$this->file = $file;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getExtension(): ?string
{
return $this->extension;
}
public function setExtension(?string $extension): self
{
$this->extension = $extension;
return $this;
}
public function getTaille(): ?string
{
return $this->taille;
}
public function setTaille(?string $taille): self
{
$this->taille = $taille;
return $this;
}
public function getDeletedAt(): ?\DateTimeInterface
{
return $this->deletedAt;
}
public function setDeletedAt(?\DateTimeInterface $deletedAt): self
{
$this->deletedAt = $deletedAt;
return $this;
}
public function getTypeMedia(): ?string
{
return $this->typeMedia;
}
public function setTypeMedia(?string $typeMedia): self
{
$this->typeMedia = $typeMedia;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setPosition(?int $position): self
{
$this->position = $position;
return $this;
}
public function getPath(): ?string
{
return $this->path;
}
public function setPath(?string $path): self
{
$this->path = $path;
return $this;
}
}