src/Entity/Files.php line 12

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\FilesRepository;
  5. use App\Utils\Traits\EntityId_TimestampTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFilesRepository::class)]
  8. class Files
  9. {
  10.     use EntityId_TimestampTrait;
  11.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::STRINGlength255)]
  12.     private string $filename;
  13.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::STRINGlength255)]
  14.     private string $type;
  15.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::STRINGlength255)]
  16.     private string $location;
  17.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::INTEGERlength11)]
  18.     private int $size 0;
  19.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::STRINGlength255)]
  20.     private string $referenceCode;
  21.     #[ORM\Column(type\Doctrine\DBAL\Types\Types::BOOLEANoptions: [
  22.         'default' => false,
  23.     ])]
  24.     private bool $temp false;
  25.     public function getFilename(): ?string
  26.     {
  27.         return $this->filename;
  28.     }
  29.     public function setFilename(string $filename): self
  30.     {
  31.         $this->filename $filename;
  32.         return $this;
  33.     }
  34.     public function getType(): ?string
  35.     {
  36.         return $this->type;
  37.     }
  38.     public function setType(string $type): self
  39.     {
  40.         $this->type $type;
  41.         return $this;
  42.     }
  43.     public function getLocation(): ?string
  44.     {
  45.         return $this->location;
  46.     }
  47.     public function setLocation(string $location): self
  48.     {
  49.         $this->location $location;
  50.         return $this;
  51.     }
  52.     public function getSize(): ?int
  53.     {
  54.         return $this->size;
  55.     }
  56.     public function setSize(int $size): self
  57.     {
  58.         $this->size $size;
  59.         return $this;
  60.     }
  61.     public function getReferenceCode(): ?string
  62.     {
  63.         return $this->referenceCode;
  64.     }
  65.     public function setReferenceCode(string $referenceCode): self
  66.     {
  67.         $this->referenceCode $referenceCode;
  68.         return $this;
  69.     }
  70.     public function isTemp(): ?bool
  71.     {
  72.         return $this->temp;
  73.     }
  74.     public function setTemp(?bool $temp): self
  75.     {
  76.         $this->temp $temp;
  77.         return $this;
  78.     }
  79.     public function getId(): ?\Symfony\Component\Uid\Ulid
  80.     {
  81.         return $this->id;
  82.     }
  83. }