src/Flexy/ShopBundle/Entity/ImportExcel/ImportExcel.php line 11

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\ImportExcel;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\Flexy\ShopBundle\Entity\ImportExcel\ImportExcelRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ApiResource]
  7. #[ORM\Entity(repositoryClassImportExcelRepository::class)]
  8. class ImportExcel
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private ?string $file null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $description null;
  18.     #[ORM\Column(type'datetime'nullabletrue)]
  19.     private ?\DateTimeInterface $createdAt null;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private ?string $entity null;
  22.     public function __construct()
  23.     {
  24.         $this->createdAt = new \DateTime();
  25.     }
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getFile(): ?string
  31.     {
  32.         return $this->file;
  33.     }
  34.     public function setFile(string $file): self
  35.     {
  36.         $this->file $file;
  37.         return $this;
  38.     }
  39.     public function getDescription(): ?string
  40.     {
  41.         return $this->description;
  42.     }
  43.     public function setDescription(?string $description): self
  44.     {
  45.         $this->description $description;
  46.         return $this;
  47.     }
  48.     public function getCreatedAt(): ?\DateTimeInterface
  49.     {
  50.         return $this->createdAt;
  51.     }
  52.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  53.     {
  54.         $this->createdAt $createdAt;
  55.         return $this;
  56.     }
  57.     public function getEntity(): ?string
  58.     {
  59.         return $this->entity;
  60.     }
  61.     public function setEntity(?string $entity): self
  62.     {
  63.         $this->entity $entity;
  64.         return $this;
  65.     }
  66. }