src/Entity/FileEnrich.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use ApiPlatform\Metadata\Delete;
  5. use ApiPlatform\Metadata\Get;
  6. use ApiPlatform\Metadata\GetCollection;
  7. use ApiPlatform\Metadata\Post;
  8. use ApiPlatform\Metadata\Put;
  9. use App\Repository\FileEnrichRepository;
  10. use Doctrine\DBAL\Types\Types;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Symfony\Component\Serializer\Annotation\Groups;
  13. #[ORM\Entity(repositoryClassFileEnrichRepository::class)]
  14. class FileEnrich
  15. {
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column]
  19.     private ?int $id null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $fileName null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  23.     private ?\DateTimeInterface $createdAt null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  25.     private ?\DateTimeInterface $updatedAt null;
  26.     #[ORM\ManyToOne(inversedBy'fileEnriches')]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?User $user null;
  29.     #[ORM\Column]
  30.     private array $head = [];
  31.     #[ORM\Column]
  32.     private ?bool $isPaid null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private array $dataEnrich = [];
  35.     #[ORM\Column]
  36.     private ?bool $isReadyToDownload null;
  37.     #[ORM\Column]
  38.     private array $dataSiret = [];
  39.     #[ORM\Column]
  40.     private ?bool $isFileVerified null;
  41.     #[ORM\Column]
  42.     private ?bool $haveData null;
  43.     public function getId(): ?int
  44.     {
  45.         return $this->id;
  46.     }
  47.     public function getFileName(): ?string
  48.     {
  49.         return $this->fileName;
  50.     }
  51.     public function setFileName(string $fileName): self
  52.     {
  53.         $this->fileName $fileName;
  54.         return $this;
  55.     }
  56.     public function getCreatedAt(): ?\DateTimeInterface
  57.     {
  58.         return $this->createdAt;
  59.     }
  60.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  61.     {
  62.         $this->createdAt $createdAt;
  63.         return $this;
  64.     }
  65.     public function getUpdatedAt(): ?\DateTimeInterface
  66.     {
  67.         return $this->updatedAt;
  68.     }
  69.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  70.     {
  71.         $this->updatedAt $updatedAt;
  72.         return $this;
  73.     }
  74.     public function getUser(): ?User
  75.     {
  76.         return $this->user;
  77.     }
  78.     public function setUser(?User $user): self
  79.     {
  80.         $this->user $user;
  81.         return $this;
  82.     }
  83.     public function getHead(): array
  84.     {
  85.         return $this->head;
  86.     }
  87.     public function setHead(array $head): self
  88.     {
  89.         $this->head $head;
  90.         return $this;
  91.     }
  92.     public function isIsPaid(): ?bool
  93.     {
  94.         return $this->isPaid;
  95.     }
  96.     public function setIsPaid(bool $isPaid): self
  97.     {
  98.         $this->isPaid $isPaid;
  99.         return $this;
  100.     }
  101.     public function getDataEnrich(): array
  102.     {
  103.         return $this->dataEnrich;
  104.     }
  105.     public function setDataEnrich(?array $dataEnrich): self
  106.     {
  107.         $this->dataEnrich $dataEnrich;
  108.         return $this;
  109.     }
  110.     public function isIsReadyToDownload(): ?bool
  111.     {
  112.         return $this->isReadyToDownload;
  113.     }
  114.     public function setIsReadyToDownload(bool $isReadyToDownload): self
  115.     {
  116.         $this->isReadyToDownload $isReadyToDownload;
  117.         return $this;
  118.     }
  119.     public function getDataSiret(): array
  120.     {
  121.         return $this->dataSiret;
  122.     }
  123.     public function setDataSiret(array $dataSiret): self
  124.     {
  125.         $this->dataSiret $dataSiret;
  126.         return $this;
  127.     }
  128.     public function isIsFileVerified(): ?bool
  129.     {
  130.         return $this->isFileVerified;
  131.     }
  132.     public function setIsFileVerified(bool $isFileVerified): self
  133.     {
  134.         $this->isFileVerified $isFileVerified;
  135.         return $this;
  136.     }
  137.     public function isHaveData(): ?bool
  138.     {
  139.         return $this->haveData;
  140.     }
  141.     public function setHaveData(bool $haveData): self
  142.     {
  143.         $this->haveData $haveData;
  144.         return $this;
  145.     }
  146. }