src/Entity/File.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FileRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFileRepository::class)]
  7. class File
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  14.     private ?\DateTimeInterface $created null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  16.     private ?\DateTimeInterface $updated null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $name null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $path null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $size null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?int $createdById null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?int $updatedById null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getCreated(): ?\DateTimeInterface
  32.     {
  33.         return $this->created;
  34.     }
  35.     public function setCreated(\DateTimeInterface $created): static
  36.     {
  37.         $this->created $created;
  38.         return $this;
  39.     }
  40.     public function getUpdated(): ?\DateTimeInterface
  41.     {
  42.         return $this->updated;
  43.     }
  44.     public function setUpdated(\DateTimeInterface $updated): static
  45.     {
  46.         $this->updated $updated;
  47.         return $this;
  48.     }
  49.     public function getName(): ?string
  50.     {
  51.         return $this->name;
  52.     }
  53.     public function setName(string $name): static
  54.     {
  55.         $this->name $name;
  56.         return $this;
  57.     }
  58.     public function getPath(): ?string
  59.     {
  60.         return $this->path;
  61.     }
  62.     public function setPath(string $path): static
  63.     {
  64.         $this->path $path;
  65.         return $this;
  66.     }
  67.     public function getSize(): ?string
  68.     {
  69.         return $this->size;
  70.     }
  71.     public function setSize(?string $size): static
  72.     {
  73.         $this->size $size;
  74.         return $this;
  75.     }
  76.     public function getCreatedById(): ?int
  77.     {
  78.         return $this->createdById;
  79.     }
  80.     public function setCreatedById(?int $createdById): static
  81.     {
  82.         $this->createdById $createdById;
  83.         return $this;
  84.     }
  85.     public function getUpdatedById(): ?int
  86.     {
  87.         return $this->updatedById;
  88.     }
  89.     public function setUpdatedById(?int $updatedById): static
  90.     {
  91.         $this->updatedById $updatedById;
  92.         return $this;
  93.     }
  94. }