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.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $startingAt null;
  35.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  36.     private ?\DateTimeInterface $endingAt null;
  37.     public function __construct()
  38.     {
  39.         $this->createdAt = new \DateTime();
  40.         $this->startingAt = new \DateTime("last week");
  41.         $this->endingAt = new \DateTime("now");
  42.     }
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getGeneratedFilePath(): ?string
  48.     {
  49.         return $this->generatedFilePath;
  50.     }
  51.     public function setGeneratedFilePath(string $generatedFilePath): self
  52.     {
  53.         $this->generatedFilePath $generatedFilePath;
  54.         return $this;
  55.     }
  56.     public function getEntityNameSpace(): ?string
  57.     {
  58.         return $this->entityNameSpace;
  59.     }
  60.     public function setEntityNameSpace(string $entityNameSpace): self
  61.     {
  62.         $this->entityNameSpace $entityNameSpace;
  63.         return $this;
  64.     }
  65.     public function getCreatedAt(): ?\DateTimeInterface
  66.     {
  67.         return $this->createdAt;
  68.     }
  69.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  70.     {
  71.         $this->createdAt $createdAt;
  72.         return $this;
  73.     }
  74.     public function getFields(): array
  75.     {
  76.         return $this->fields;
  77.     }
  78.     public function setFields(?array $fields): self
  79.     {
  80.         $this->fields $fields;
  81.         return $this;
  82.     }
  83.     public function isExcludeFields(): ?bool
  84.     {
  85.         return $this->excludeFields;
  86.     }
  87.     public function setExcludeFields(?bool $excludeFields): self
  88.     {
  89.         $this->excludeFields $excludeFields;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get the value of findBy
  94.      */ 
  95.     public function getFindBy()
  96.     {
  97.         return $this->findBy;
  98.     }
  99.     /**
  100.      * Set the value of findBy
  101.      *
  102.      * @return  self
  103.      */ 
  104.     public function setFindBy($findBy)
  105.     {
  106.         $this->findBy $findBy;
  107.         return $this;
  108.     }
  109.     public function getDescription(): ?string
  110.     {
  111.         return $this->description;
  112.     }
  113.     public function setDescription(?string $description): self
  114.     {
  115.         $this->description $description;
  116.         return $this;
  117.     }
  118.     public function getOrderBy(): array
  119.     {
  120.         return $this->orderBy;
  121.     }
  122.     public function setOrderBy(?array $orderBy): self
  123.     {
  124.         $this->orderBy $orderBy;
  125.         return $this;
  126.     }
  127.     public function getMetaDataFields(): ?array
  128.     {
  129.         return $this->metaDataFields;
  130.     }
  131.     public function setMetaDataFields(?array $metaDataFields): static
  132.     {
  133.         $this->metaDataFields $metaDataFields;
  134.         return $this;
  135.     }
  136.     public function getStartingAt(): ?\DateTimeInterface
  137.     {
  138.         return $this->startingAt;
  139.     }
  140.     public function setStartingAt(?\DateTimeInterface $startingAt): static
  141.     {
  142.         $this->startingAt $startingAt;
  143.         return $this;
  144.     }
  145.     public function getEndingAt(): ?\DateTimeInterface
  146.     {
  147.         return $this->endingAt;
  148.     }
  149.     public function setEndingAt(?\DateTimeInterface $endingAt): static
  150.     {
  151.         $this->endingAt $endingAt;
  152.         return $this;
  153.     }
  154. }