src/Entity/ExportExcel.php line 12
<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\ExportExcelRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ExportExcelRepository::class)]
#[ApiResource]
class ExportExcel
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $generatedFilePath = null;
#[ORM\Column(length: 255)]
private ?string $entityNameSpace = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(nullable: true)]
private array $fields = [];
#[ORM\Column(nullable: true)]
private ?bool $excludeFields = null;
#[ORM\Column(nullable: true)]
private array $findBy = [];
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\Column(nullable: true)]
private array $orderBy = [];
public function __construct()
{
$this->createdAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getGeneratedFilePath(): ?string
{
return $this->generatedFilePath;
}
public function setGeneratedFilePath(string $generatedFilePath): self
{
$this->generatedFilePath = $generatedFilePath;
return $this;
}
public function getEntityNameSpace(): ?string
{
return $this->entityNameSpace;
}
public function setEntityNameSpace(string $entityNameSpace): self
{
$this->entityNameSpace = $entityNameSpace;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getFields(): array
{
return $this->fields;
}
public function setFields(?array $fields): self
{
$this->fields = $fields;
return $this;
}
public function isExcludeFields(): ?bool
{
return $this->excludeFields;
}
public function setExcludeFields(?bool $excludeFields): self
{
$this->excludeFields = $excludeFields;
return $this;
}
/**
* Get the value of findBy
*/
public function getFindBy()
{
return $this->findBy;
}
/**
* Set the value of findBy
*
* @return self
*/
public function setFindBy($findBy)
{
$this->findBy = $findBy;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getOrderBy(): array
{
return $this->orderBy;
}
public function setOrderBy(?array $orderBy): self
{
$this->orderBy = $orderBy;
return $this;
}
}