<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Delete;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use ApiPlatform\Metadata\Post;
use ApiPlatform\Metadata\Put;
use App\Repository\FileEnrichRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: FileEnrichRepository::class)]
class FileEnrich
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $fileName = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $updatedAt = null;
#[ORM\ManyToOne(inversedBy: 'fileEnriches')]
#[ORM\JoinColumn(nullable: false)]
private ?User $user = null;
#[ORM\Column]
private array $head = [];
#[ORM\Column]
private ?bool $isPaid = null;
#[ORM\Column(nullable: true)]
private array $dataEnrich = [];
#[ORM\Column]
private ?bool $isReadyToDownload = null;
#[ORM\Column]
private array $dataSiret = [];
#[ORM\Column]
private ?bool $isFileVerified = null;
#[ORM\Column]
private ?bool $haveData = null;
public function getId(): ?int
{
return $this->id;
}
public function getFileName(): ?string
{
return $this->fileName;
}
public function setFileName(string $fileName): self
{
$this->fileName = $fileName;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getHead(): array
{
return $this->head;
}
public function setHead(array $head): self
{
$this->head = $head;
return $this;
}
public function isIsPaid(): ?bool
{
return $this->isPaid;
}
public function setIsPaid(bool $isPaid): self
{
$this->isPaid = $isPaid;
return $this;
}
public function getDataEnrich(): array
{
return $this->dataEnrich;
}
public function setDataEnrich(?array $dataEnrich): self
{
$this->dataEnrich = $dataEnrich;
return $this;
}
public function isIsReadyToDownload(): ?bool
{
return $this->isReadyToDownload;
}
public function setIsReadyToDownload(bool $isReadyToDownload): self
{
$this->isReadyToDownload = $isReadyToDownload;
return $this;
}
public function getDataSiret(): array
{
return $this->dataSiret;
}
public function setDataSiret(array $dataSiret): self
{
$this->dataSiret = $dataSiret;
return $this;
}
public function isIsFileVerified(): ?bool
{
return $this->isFileVerified;
}
public function setIsFileVerified(bool $isFileVerified): self
{
$this->isFileVerified = $isFileVerified;
return $this;
}
public function isHaveData(): ?bool
{
return $this->haveData;
}
public function setHaveData(bool $haveData): self
{
$this->haveData = $haveData;
return $this;
}
}