src/Entity/ExportExcel.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\ExportExcelRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassExportExcelRepository::class)]
  8. #[ApiResource]
  9. class ExportExcel
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $generatedFilePath null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $entityNameSpace null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $createdAt null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private array $fields = [];
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $excludeFields null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private array $findBy = [];
  27.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  28.     private ?string $description null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private array $orderBy = [];
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?array $metaDataFields = [];
  33.     public function __construct()
  34.     {
  35.         $this->createdAt = new \DateTime();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getGeneratedFilePath(): ?string
  42.     {
  43.         return $this->generatedFilePath;
  44.     }
  45.     public function setGeneratedFilePath(string $generatedFilePath): self
  46.     {
  47.         $this->generatedFilePath $generatedFilePath;
  48.         return $this;
  49.     }
  50.     public function getEntityNameSpace(): ?string
  51.     {
  52.         return $this->entityNameSpace;
  53.     }
  54.     public function setEntityNameSpace(string $entityNameSpace): self
  55.     {
  56.         $this->entityNameSpace $entityNameSpace;
  57.         return $this;
  58.     }
  59.     public function getCreatedAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->createdAt;
  62.     }
  63.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  64.     {
  65.         $this->createdAt $createdAt;
  66.         return $this;
  67.     }
  68.     public function getFields(): array
  69.     {
  70.         return $this->fields;
  71.     }
  72.     public function setFields(?array $fields): self
  73.     {
  74.         $this->fields $fields;
  75.         return $this;
  76.     }
  77.     public function isExcludeFields(): ?bool
  78.     {
  79.         return $this->excludeFields;
  80.     }
  81.     public function setExcludeFields(?bool $excludeFields): self
  82.     {
  83.         $this->excludeFields $excludeFields;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get the value of findBy
  88.      */ 
  89.     public function getFindBy()
  90.     {
  91.         return $this->findBy;
  92.     }
  93.     /**
  94.      * Set the value of findBy
  95.      *
  96.      * @return  self
  97.      */ 
  98.     public function setFindBy($findBy)
  99.     {
  100.         $this->findBy $findBy;
  101.         return $this;
  102.     }
  103.     public function getDescription(): ?string
  104.     {
  105.         return $this->description;
  106.     }
  107.     public function setDescription(?string $description): self
  108.     {
  109.         $this->description $description;
  110.         return $this;
  111.     }
  112.     public function getOrderBy(): array
  113.     {
  114.         return $this->orderBy;
  115.     }
  116.     public function setOrderBy(?array $orderBy): self
  117.     {
  118.         $this->orderBy $orderBy;
  119.         return $this;
  120.     }
  121.     public function getMetaDataFields(): ?array
  122.     {
  123.         return $this->metaDataFields;
  124.     }
  125.     public function setMetaDataFields(?array $metaDataFields): static
  126.     {
  127.         $this->metaDataFields $metaDataFields;
  128.         return $this;
  129.     }
  130. }