src/Entity/Media.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MediaRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMediaRepository::class)]
  7. class Media
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'string'length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column(type'string'length255)]
  16.     private ?string $type null;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $path null;
  19.     #[ORM\Column(type'integer')]
  20.     private ?int $size null;
  21.     #[ORM\Column(type'boolean'nullabletrue)]
  22.     private ?bool $hasWebp null;
  23.     #[ORM\Column(type'boolean'nullabletrue)]
  24.     private ?bool $hasWebm null;
  25.     #[ORM\Column(type'boolean'nullabletrue)]
  26.     private ?bool $hasThumb null;
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $contentHash null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?array $analyzedData null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getName(): ?string
  36.     {
  37.         return $this->name;
  38.     }
  39.     public function setName(string $name): self
  40.     {
  41.         $this->name $name;
  42.         return $this;
  43.     }
  44.     public function getType(): ?string
  45.     {
  46.         return $this->type;
  47.     }
  48.     public function setType(string $type): self
  49.     {
  50.         $this->type $type;
  51.         return $this;
  52.     }
  53.     public function getPath(): ?string
  54.     {
  55.         return $this->path;
  56.     }
  57.     public function setPath(string $path): self
  58.     {
  59.         $this->path $path;
  60.         return $this;
  61.     }
  62.     public function getSize(): ?int
  63.     {
  64.         return $this->size;
  65.     }
  66.     public function setSize(int $size): self
  67.     {
  68.         $this->size $size;
  69.         return $this;
  70.     }
  71.     public function getHasWebp(): ?bool
  72.     {
  73.         return $this->hasWebp;
  74.     }
  75.     public function setHasWebp(?bool $hasWebp): self
  76.     {
  77.         $this->hasWebp $hasWebp;
  78.         return $this;
  79.     }
  80.     public function getHasWebm(): ?bool
  81.     {
  82.         return $this->hasWebm;
  83.     }
  84.     public function setHasWebm(?bool $hasWebm): self
  85.     {
  86.         $this->hasWebm $hasWebm;
  87.         return $this;
  88.     }
  89.     public function getHasThumb(): ?bool
  90.     {
  91.         return $this->hasThumb;
  92.     }
  93.     public function setHasThumb(?bool $hasThumb): self
  94.     {
  95.         $this->hasThumb $hasThumb;
  96.         return $this;
  97.     }
  98.     public function getContentHash(): ?string
  99.     {
  100.         return $this->contentHash;
  101.     }
  102.     public function setContentHash(?string $contentHash): static
  103.     {
  104.         $this->contentHash $contentHash;
  105.         return $this;
  106.     }
  107.     public function getAnalyzedData(): ?array
  108.     {
  109.         return $this->analyzedData;
  110.     }
  111.     public function setAnalyzedData(?array $analyzedData): static
  112.     {
  113.         $this->analyzedData $analyzedData;
  114.         return $this;
  115.     }
  116. }