<?php
namespace App\Entity;
use App\Repository\PipelineIdentiteVisuelleVisitCardDeclinationRepository;
use DateTimeImmutable;
use DateTimeInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable()
*/
#[ORM\Entity(repositoryClass: PipelineIdentiteVisuelleVisitCardDeclinationRepository::class)]
class PipelineIdentiteVisuelleVisitCardDeclination
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $address;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $postalCode;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $city;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $phone;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $email;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $website;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $role;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $firstname;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\Column(type: 'boolean', nullable: true)]
private $photoDesired;
#[ORM\ManyToOne(targetEntity: PipelineIdentiteVisuelle::class, inversedBy: 'visitCardDeclinations')]
private $pipelineIdentiteVisuelle;
#[ORM\OneToMany(mappedBy: 'pipelineIdentiteVisuelleVisitCardDeclination', targetEntity: PipelineIdentiteVisuelleVisitCardPhoto::class, cascade: ['persist', 'remove'])]
private $visitCardPhotos;
#[ORM\Column(type: 'string', nullable: true)]
private $rectoName;
#[ORM\Column(type: 'integer', nullable: true)]
private $rectoSize;
#[ORM\Column(type: 'datetime', nullable: true)]
private $rectoUpdatedAt;
/**
* @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="rectoName", size="rectoSize")
*/
private $rectoFile;
#[ORM\Column(type: 'string', nullable: true)]
private $versoName;
#[ORM\Column(type: 'integer', nullable: true)]
private $versoSize;
#[ORM\Column(type: 'datetime', nullable: true)]
private $versoUpdatedAt;
/**
* @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="versoName", size="versoSize")
*/
private $versoFile;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printAccountingFirmName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printName;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printPostalCode;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printCity;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printPhone;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $printAddress;
#[ORM\Column(type: 'boolean', nullable: true)]
private $validate;
#[ORM\Column(type: 'text', nullable: true)]
private $adjustment;
#[ORM\Column(type: 'boolean', nullable: true)]
private $shippingSameAddress;
public function __construct()
{
$this->visitCardPhotos = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getPostalCode(): ?string
{
return $this->postalCode;
}
public function setPostalCode(?string $postalCode): self
{
$this->postalCode = $postalCode;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getWebsite(): ?string
{
return $this->website;
}
public function setWebsite(?string $website): self
{
$this->website = $website;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(?string $role): self
{
$this->role = $role;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(?string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function isPhotoDesired(): ?bool
{
return $this->photoDesired;
}
public function setPhotoDesired(?bool $photoDesired): self
{
$this->photoDesired = $photoDesired;
return $this;
}
public function getPipelineIdentiteVisuelle(): ?PipelineIdentiteVisuelle
{
return $this->pipelineIdentiteVisuelle;
}
public function setPipelineIdentiteVisuelle(?PipelineIdentiteVisuelle $pipelineIdentiteVisuelle): self
{
$this->pipelineIdentiteVisuelle = $pipelineIdentiteVisuelle;
return $this;
}
/**
* @return Collection<int, PipelineIdentiteVisuelleVisitCardPhoto>
*/
public function getVisitCardPhotos(): Collection
{
return $this->visitCardPhotos;
}
public function addVisitCardPhoto(PipelineIdentiteVisuelleVisitCardPhoto $visitCardPhoto): self
{
if (!$this->visitCardPhotos->contains($visitCardPhoto)) {
$this->visitCardPhotos[] = $visitCardPhoto;
$visitCardPhoto->setPipelineIdentiteVisuelleVisitCardDeclination($this);
}
return $this;
}
public function removeVisitCardPhoto(PipelineIdentiteVisuelleVisitCardPhoto $visitCardPhoto): self
{
if ($this->visitCardPhotos->removeElement($visitCardPhoto)) {
// set the owning side to null (unless already changed)
if ($visitCardPhoto->getPipelineIdentiteVisuelleVisitCardDeclination() === $this) {
$visitCardPhoto->setPipelineIdentiteVisuelleVisitCardDeclination(null);
}
}
return $this;
}
public function getRectoName(): ?string
{
return $this->rectoName;
}
public function setRectoName(?string $rectoName): self
{
$this->rectoName = $rectoName;
return $this;
}
public function getRectoSize(): ?int
{
return $this->rectoSize;
}
public function setRectoSize(?int $rectoSize): self
{
$this->rectoSize = $rectoSize;
return $this;
}
public function getRectoUpdatedAt(): ?DateTimeInterface
{
return $this->rectoUpdatedAt;
}
public function setRectoUpdatedAt(?DateTimeInterface $rectoUpdatedAt): self
{
$this->rectoUpdatedAt = $rectoUpdatedAt;
return $this;
}
public function getRectoFile(): ?File
{
return $this->rectoFile;
}
public function setRectoFile(?File $rectoFile): self
{
$this->rectoFile = $rectoFile;
if (null !== $this->rectoFile) {
$this->rectoUpdatedAt = new DateTimeImmutable();
}
return $this;
}
public function getVersoName(): ?string
{
return $this->versoName;
}
public function setVersoName(?string $versoName): self
{
$this->versoName = $versoName;
return $this;
}
public function getVersoSize(): ?int
{
return $this->versoSize;
}
public function setVersoSize(?int $versoSize): self
{
$this->versoSize = $versoSize;
return $this;
}
public function getVersoUpdatedAt(): ?DateTimeInterface
{
return $this->versoUpdatedAt;
}
public function setVersoUpdatedAt(?DateTimeInterface $versoUpdatedAt): self
{
$this->versoUpdatedAt = $versoUpdatedAt;
return $this;
}
public function getVersoFile(): ?File
{
return $this->versoFile;
}
public function setVersoFile(?File $versoFile): self
{
$this->versoFile = $versoFile;
if (null !== $this->versoFile) {
$this->versoUpdatedAt = new DateTimeImmutable();
}
return $this;
}
public function getPrintAccountingFirmName(): ?string
{
return $this->printAccountingFirmName;
}
public function setPrintAccountingFirmName(?string $printAccountingFirmName): self
{
$this->printAccountingFirmName = $printAccountingFirmName;
return $this;
}
public function getPrintName(): ?string
{
return $this->printName;
}
public function setPrintName(?string $printName): self
{
$this->printName = $printName;
return $this;
}
public function getPrintPostalCode(): ?string
{
return $this->printPostalCode;
}
public function setPrintPostalCode(?string $printPostalCode): self
{
$this->printPostalCode = $printPostalCode;
return $this;
}
public function getPrintCity(): ?string
{
return $this->printCity;
}
public function setPrintCity(?string $printCity): self
{
$this->printCity = $printCity;
return $this;
}
public function getPrintPhone(): ?string
{
return $this->printPhone;
}
public function setPrintPhone(?string $printPhone): self
{
$this->printPhone = $printPhone;
return $this;
}
public function getPrintAddress(): ?string
{
return $this->printAddress;
}
public function setPrintAddress(?string $printAddress): self
{
$this->printAddress = $printAddress;
return $this;
}
public function isValidate(): ?bool
{
return $this->validate;
}
public function setValidate(?bool $validate): self
{
$this->validate = $validate;
return $this;
}
public function getAdjustment(): ?string
{
return $this->adjustment;
}
public function setAdjustment(?string $adjustment): self
{
$this->adjustment = $adjustment;
return $this;
}
public function isShippingSameAddress(): ?bool
{
return $this->shippingSameAddress;
}
public function setShippingSameAddress(?bool $shippingSameAddress): self
{
$this->shippingSameAddress = $shippingSameAddress;
return $this;
}
}