<?php
namespace App\Entity;
use App\Repository\PipelineIdentiteVisuelleProposalReturnRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable()
*/
#[ORM\Entity(repositoryClass: PipelineIdentiteVisuelleProposalReturnRepository::class)]
class PipelineIdentiteVisuelleProposalReturn
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer')]
private $step;
#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
#[ORM\OneToOne(targetEntity: PipelineIdentiteVisuelleProposal::class, cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: true)]
private $proposalVisitCardRecto = null;
#[ORM\OneToOne(targetEntity: PipelineIdentiteVisuelleProposal::class, cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: true)]
private $proposalVisitCardVerso = null;
#[ORM\OneToOne(targetEntity: PipelineIdentiteVisuelleProposal::class, cascade: ['persist', 'remove'])]
private $proposal;
#[ORM\ManyToOne(targetEntity: PipelineIdentiteVisuelle::class, inversedBy: 'proposalReturns')]
private $pipelineIdentiteVisuelle;
#[ORM\Column(type: 'text', nullable: true)]
private $adjustment;
#[ORM\Column(type: 'text', nullable: true)]
private $precisionMessage;
#[ORM\Column(type: 'text', nullable: true)]
private $precisionReturn;
#[ORM\Column(type: 'string', nullable: true)]
private $imageName;
#[ORM\Column(type: 'integer', nullable: true)]
private $imageSize;
#[ORM\Column(type: 'datetime', nullable: true)]
private $imageUpdatedAt;
/**
* @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="imageName", size="imageSize")
*/
private $imageFile;
#[ORM\Column(type: 'string', nullable: true)]
private $secondImageName;
#[ORM\Column(type: 'integer', nullable: true)]
private $secondImageSize;
#[ORM\Column(type: 'datetime', nullable: true)]
private $secondImageUpdatedAt;
/**
* @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="secondImageName", size="secondImageSize")
*/
private $secondImageFile;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private bool $rectoRejected = false;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private bool $versoRejected = false;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $rectoRejectComment = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $versoRejectComment = null;
#[ORM\Column(type: 'boolean', options: ['default' => false])]
private ?bool $rejected = false;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $rejectComment = null;
public function getId(): ?int
{
return $this->id;
}
public function getStep(): ?int
{
return $this->step;
}
public function setStep(int $step): self
{
$this->step = $step;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getProposalVisitCardRecto(): ?PipelineIdentiteVisuelleProposal
{
return $this->proposalVisitCardRecto;
}
public function setProposalVisitCardRecto(?PipelineIdentiteVisuelleProposal $proposalVisitCardRecto): self
{
$this->proposalVisitCardRecto = $proposalVisitCardRecto;
return $this;
}
public function getProposalVisitCardVerso(): ?PipelineIdentiteVisuelleProposal
{
return $this->proposalVisitCardVerso;
}
public function setProposalVisitCardVerso(?PipelineIdentiteVisuelleProposal $proposalVisitCardVerso): self
{
$this->proposalVisitCardVerso = $proposalVisitCardVerso;
return $this;
}
public function getProposal(): ?PipelineIdentiteVisuelleProposal
{
return $this->proposal;
}
public function setProposal(?PipelineIdentiteVisuelleProposal $proposal): self
{
$this->proposal = $proposal;
return $this;
}
public function getPipelineIdentiteVisuelle(): ?PipelineIdentiteVisuelle
{
return $this->pipelineIdentiteVisuelle;
}
public function setPipelineIdentiteVisuelle(?PipelineIdentiteVisuelle $pipelineIdentiteVisuelle): self
{
$this->pipelineIdentiteVisuelle = $pipelineIdentiteVisuelle;
return $this;
}
public function getAdjustment(): ?string
{
return $this->adjustment;
}
public function setAdjustment(?string $adjustment): self
{
$this->adjustment = $adjustment;
return $this;
}
public function getPrecisionMessage(): ?string
{
return $this->precisionMessage;
}
public function setPrecisionMessage(?string $precisionMessage): self
{
$this->precisionMessage = $precisionMessage;
return $this;
}
public function getPrecisionReturn(): ?string
{
return $this->precisionReturn;
}
public function setPrecisionReturn(?string $precisionReturn): self
{
$this->precisionReturn = $precisionReturn;
return $this;
}
public function getImageName(): ?string
{
return $this->imageName;
}
public function setImageName(?string $imageName): self
{
$this->imageName = $imageName;
return $this;
}
public function getImageSize(): ?int
{
return $this->imageSize;
}
public function setImageSize(?int $imageSize): self
{
$this->imageSize = $imageSize;
return $this;
}
public function getImageUpdatedAt(): ?\DateTimeInterface
{
return $this->imageUpdatedAt;
}
public function setImageUpdatedAt(?\DateTimeInterface $imageUpdatedAt): self
{
$this->imageUpdatedAt = $imageUpdatedAt;
return $this;
}
public function getImageFile(): ?File
{
return $this->imageFile;
}
public function setImageFile(?File $imageFile): self
{
$this->imageFile = $imageFile;
if (null !== $this->imageFile) {
$this->imageUpdatedAt = new \DateTimeImmutable();
}
return $this;
}
public function getSecondImageName(): ?string
{
return $this->secondImageName;
}
public function setSecondImageName(?string $secondImageName): self
{
$this->secondImageName = $secondImageName;
return $this;
}
public function getSecondImageSize(): ?int
{
return $this->secondImageSize;
}
public function setSecondImageSize(?int $secondImageSize): self
{
$this->secondImageSize = $secondImageSize;
return $this;
}
public function getSecondImageUpdatedAt(): ?\DateTimeInterface
{
return $this->secondImageUpdatedAt;
}
public function setSecondImageUpdatedAt(?\DateTimeInterface $secondImageUpdatedAt): self
{
$this->secondImageUpdatedAt = $secondImageUpdatedAt;
return $this;
}
public function getSecondImageFile(): ?File
{
return $this->secondImageFile;
}
public function setSecondImageFile(?File $secondImageFile): self
{
$this->secondImageFile = $secondImageFile;
if (null !== $this->secondImageFile) {
$this->imageUpdatedAt = new \DateTimeImmutable();
}
return $this;
}
public function isRectoRejected(): bool
{
return $this->rectoRejected;
}
public function setRectoRejected(bool $rectoRejected): self
{
$this->rectoRejected = $rectoRejected;
return $this;
}
public function isVersoRejected(): bool
{
return $this->versoRejected;
}
public function setVersoRejected(bool $versoRejected): self
{
$this->versoRejected = $versoRejected;
return $this;
}
public function getRectoRejectComment(): ?string
{
return $this->rectoRejectComment;
}
public function setRectoRejectComment(?string $rectoRejectComment): self
{
$this->rectoRejectComment = $rectoRejectComment;
return $this;
}
public function getVersoRejectComment(): ?string
{
return $this->versoRejectComment;
}
public function setVersoRejectComment(?string $versoRejectComment): self
{
$this->versoRejectComment = $versoRejectComment;
return $this;
}
public function isRejected(): ?bool
{
return $this->rejected;
}
public function setRejected(?bool $rejected): self
{
$this->rejected = $rejected;
return $this;
}
public function getRejectComment(): ?string
{
return $this->rejectComment;
}
public function setRejectComment(?string $rejectComment): self
{
$this->rejectComment = $rejectComment;
return $this;
}
}