src/Entity/Gos/Tmpl/TmplFile.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Tmpl;
  3. use App\Entity\Gos\Product;
  4. use App\Entity\Gos\Tmpl\TmplModuleContent;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\TmplFileRepository")
  8.  * @ORM\Table(name="tmpl_files")
  9.  * @ORM\HasLifecycleCallbacks
  10.  */
  11. class TmplFile
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      * @ORM\Column(name="name", type="string")
  24.      */
  25.     private $name;
  26.     /**
  27.      * @var string
  28.      * @ORM\Column(name="file_name", type="string")
  29.      */
  30.     private $fileName;
  31.     /**
  32.      * @var string
  33.      * @ORM\Column(name="mime_type", type="string")
  34.      */
  35.     private $mimeType;
  36.     /**
  37.      * @ORM\Column(type="datetime")
  38.      */
  39.     private $createdAt;
  40.     /** @ORM\PrePersist() */
  41.     public function prePersist()
  42.     {
  43.         $this->createdAt = new \DateTime();
  44.     }
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getName(): ?string
  50.     {
  51.         return $this->name;
  52.     }
  53.     public function setName(string $name): self
  54.     {
  55.         $this->name $name;
  56.         return $this;
  57.     }
  58.     public function getFileName(): ?string
  59.     {
  60.         return $this->fileName;
  61.     }
  62.     public function setFileName(string $fileName): self
  63.     {
  64.         $this->fileName $fileName;
  65.         return $this;
  66.     }
  67.     public function getMimeType(): ?string
  68.     {
  69.         return $this->mimeType;
  70.     }
  71.     public function setMimeType(string $mimeType): self
  72.     {
  73.         $this->mimeType $mimeType;
  74.         return $this;
  75.     }
  76.     public function getCreatedAt(): ?\DateTimeInterface
  77.     {
  78.         return $this->createdAt;
  79.     }
  80.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  81.     {
  82.         $this->createdAt $createdAt;
  83.         return $this;
  84.     }
  85. }