src/Entity/PipelineIdentiteVisuelleVisitCardDeclination.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PipelineIdentiteVisuelleVisitCardDeclinationRepository;
  4. use DateTimeImmutable;
  5. use DateTimeInterface;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Component\HttpFoundation\File\File;
  10. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  11. /**
  12.  * @Vich\Uploadable()
  13.  */
  14. #[ORM\Entity(repositoryClassPipelineIdentiteVisuelleVisitCardDeclinationRepository::class)]
  15. class PipelineIdentiteVisuelleVisitCardDeclination
  16. {
  17.   #[ORM\Id]
  18.   #[ORM\GeneratedValue]
  19.   #[ORM\Column(type'integer')]
  20.   private $id;
  21.   #[ORM\Column(type'string'length255nullabletrue)]
  22.   private $address;
  23.   #[ORM\Column(type'string'length255nullabletrue)]
  24.   private $postalCode;
  25.   #[ORM\Column(type'string'length255nullabletrue)]
  26.   private $city;
  27.   #[ORM\Column(type'string'length255nullabletrue)]
  28.   private $phone;
  29.   #[ORM\Column(type'string'length255nullabletrue)]
  30.   private $email;
  31.   #[ORM\Column(type'string'length255nullabletrue)]
  32.   private $website;
  33.   #[ORM\Column(type'string'length255nullabletrue)]
  34.   private $role;
  35.   #[ORM\Column(type'string'length255nullabletrue)]
  36.   private $firstname;
  37.   #[ORM\Column(type'string'length255nullabletrue)]
  38.   private $name;
  39.   #[ORM\Column(type'boolean'nullabletrue)]
  40.   private $photoDesired;
  41.   #[ORM\ManyToOne(targetEntityPipelineIdentiteVisuelle::class, inversedBy'visitCardDeclinations')]
  42.   private $pipelineIdentiteVisuelle;
  43.   #[ORM\OneToMany(mappedBy'pipelineIdentiteVisuelleVisitCardDeclination'targetEntityPipelineIdentiteVisuelleVisitCardPhoto::class, cascade: ['persist''remove'])]
  44.   private $visitCardPhotos;
  45.   #[ORM\Column(type'string'nullabletrue)]
  46.   private $rectoName;
  47.   #[ORM\Column(type'integer'nullabletrue)]
  48.   private $rectoSize;
  49.   #[ORM\Column(type'datetime'nullabletrue)]
  50.   private $rectoUpdatedAt;
  51.   /**
  52.    * @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="rectoName", size="rectoSize")
  53.    */
  54.   private $rectoFile;
  55.   #[ORM\Column(type'string'nullabletrue)]
  56.   private $versoName;
  57.   #[ORM\Column(type'integer'nullabletrue)]
  58.   private $versoSize;
  59.   #[ORM\Column(type'datetime'nullabletrue)]
  60.   private $versoUpdatedAt;
  61.   /**
  62.    * @Vich\UploadableField(mapping="identite_visuelle_pipeline", fileNameProperty="versoName", size="versoSize")
  63.    */
  64.   private $versoFile;
  65.   #[ORM\Column(type'string'length255nullabletrue)]
  66.   private $printAccountingFirmName;
  67.   #[ORM\Column(type'string'length255nullabletrue)]
  68.   private $printName;
  69.   #[ORM\Column(type'string'length255nullabletrue)]
  70.   private $printPostalCode;
  71.   #[ORM\Column(type'string'length255nullabletrue)]
  72.   private $printCity;
  73.   #[ORM\Column(type'string'length255nullabletrue)]
  74.   private $printPhone;
  75.   #[ORM\Column(type'string'length255nullabletrue)]
  76.   private $printAddress;
  77.   #[ORM\Column(type'boolean'nullabletrue)]
  78.   private $validate;
  79.   #[ORM\Column(type'text'nullabletrue)]
  80.   private $adjustment;
  81.   #[ORM\Column(type'boolean'nullabletrue)]
  82.   private $shippingSameAddress;
  83.   public function __construct()
  84.   {
  85.     $this->visitCardPhotos = new ArrayCollection();
  86.   }
  87.   public function getId(): ?int
  88.   {
  89.     return $this->id;
  90.   }
  91.   public function getAddress(): ?string
  92.   {
  93.     return $this->address;
  94.   }
  95.   public function setAddress(?string $address): self
  96.   {
  97.     $this->address $address;
  98.     return $this;
  99.   }
  100.   public function getPostalCode(): ?string
  101.   {
  102.     return $this->postalCode;
  103.   }
  104.   public function setPostalCode(?string $postalCode): self
  105.   {
  106.     $this->postalCode $postalCode;
  107.     return $this;
  108.   }
  109.   public function getCity(): ?string
  110.   {
  111.     return $this->city;
  112.   }
  113.   public function setCity(?string $city): self
  114.   {
  115.     $this->city $city;
  116.     return $this;
  117.   }
  118.   public function getPhone(): ?string
  119.   {
  120.     return $this->phone;
  121.   }
  122.   public function setPhone(?string $phone): self
  123.   {
  124.     $this->phone $phone;
  125.     return $this;
  126.   }
  127.   public function getEmail(): ?string
  128.   {
  129.     return $this->email;
  130.   }
  131.   public function setEmail(?string $email): self
  132.   {
  133.     $this->email $email;
  134.     return $this;
  135.   }
  136.   public function getWebsite(): ?string
  137.   {
  138.     return $this->website;
  139.   }
  140.   public function setWebsite(?string $website): self
  141.   {
  142.     $this->website $website;
  143.     return $this;
  144.   }
  145.   public function getRole(): ?string
  146.   {
  147.     return $this->role;
  148.   }
  149.   public function setRole(?string $role): self
  150.   {
  151.     $this->role $role;
  152.     return $this;
  153.   }
  154.   public function getFirstname(): ?string
  155.   {
  156.     return $this->firstname;
  157.   }
  158.   public function setFirstname(?string $firstname): self
  159.   {
  160.     $this->firstname $firstname;
  161.     return $this;
  162.   }
  163.   public function getName(): ?string
  164.   {
  165.     return $this->name;
  166.   }
  167.   public function setName(?string $name): self
  168.   {
  169.     $this->name $name;
  170.     return $this;
  171.   }
  172.   public function isPhotoDesired(): ?bool
  173.   {
  174.     return $this->photoDesired;
  175.   }
  176.   public function setPhotoDesired(?bool $photoDesired): self
  177.   {
  178.     $this->photoDesired $photoDesired;
  179.     return $this;
  180.   }
  181.   public function getPipelineIdentiteVisuelle(): ?PipelineIdentiteVisuelle
  182.   {
  183.     return $this->pipelineIdentiteVisuelle;
  184.   }
  185.   public function setPipelineIdentiteVisuelle(?PipelineIdentiteVisuelle $pipelineIdentiteVisuelle): self
  186.   {
  187.     $this->pipelineIdentiteVisuelle $pipelineIdentiteVisuelle;
  188.     return $this;
  189.   }
  190.   /**
  191.    * @return Collection<int, PipelineIdentiteVisuelleVisitCardPhoto>
  192.    */
  193.   public function getVisitCardPhotos(): Collection
  194.   {
  195.     return $this->visitCardPhotos;
  196.   }
  197.   public function addVisitCardPhoto(PipelineIdentiteVisuelleVisitCardPhoto $visitCardPhoto): self
  198.   {
  199.     if (!$this->visitCardPhotos->contains($visitCardPhoto)) {
  200.       $this->visitCardPhotos[] = $visitCardPhoto;
  201.       $visitCardPhoto->setPipelineIdentiteVisuelleVisitCardDeclination($this);
  202.     }
  203.     return $this;
  204.   }
  205.   public function removeVisitCardPhoto(PipelineIdentiteVisuelleVisitCardPhoto $visitCardPhoto): self
  206.   {
  207.     if ($this->visitCardPhotos->removeElement($visitCardPhoto)) {
  208.       // set the owning side to null (unless already changed)
  209.       if ($visitCardPhoto->getPipelineIdentiteVisuelleVisitCardDeclination() === $this) {
  210.         $visitCardPhoto->setPipelineIdentiteVisuelleVisitCardDeclination(null);
  211.       }
  212.     }
  213.     return $this;
  214.   }
  215.   public function getRectoName(): ?string
  216.   {
  217.     return $this->rectoName;
  218.   }
  219.   public function setRectoName(?string $rectoName): self
  220.   {
  221.     $this->rectoName $rectoName;
  222.     return $this;
  223.   }
  224.   public function getRectoSize(): ?int
  225.   {
  226.     return $this->rectoSize;
  227.   }
  228.   public function setRectoSize(?int $rectoSize): self
  229.   {
  230.     $this->rectoSize $rectoSize;
  231.     return $this;
  232.   }
  233.   public function getRectoUpdatedAt(): ?DateTimeInterface
  234.   {
  235.     return $this->rectoUpdatedAt;
  236.   }
  237.   public function setRectoUpdatedAt(?DateTimeInterface $rectoUpdatedAt): self
  238.   {
  239.     $this->rectoUpdatedAt $rectoUpdatedAt;
  240.     return $this;
  241.   }
  242.   public function getRectoFile(): ?File
  243.   {
  244.     return $this->rectoFile;
  245.   }
  246.   public function setRectoFile(?File $rectoFile): self
  247.   {
  248.     $this->rectoFile $rectoFile;
  249.     if (null !== $this->rectoFile) {
  250.       $this->rectoUpdatedAt = new DateTimeImmutable();
  251.     }
  252.     return $this;
  253.   }
  254.   public function getVersoName(): ?string
  255.   {
  256.     return $this->versoName;
  257.   }
  258.   public function setVersoName(?string $versoName): self
  259.   {
  260.     $this->versoName $versoName;
  261.     return $this;
  262.   }
  263.   public function getVersoSize(): ?int
  264.   {
  265.     return $this->versoSize;
  266.   }
  267.   public function setVersoSize(?int $versoSize): self
  268.   {
  269.     $this->versoSize $versoSize;
  270.     return $this;
  271.   }
  272.   public function getVersoUpdatedAt(): ?DateTimeInterface
  273.   {
  274.     return $this->versoUpdatedAt;
  275.   }
  276.   public function setVersoUpdatedAt(?DateTimeInterface $versoUpdatedAt): self
  277.   {
  278.     $this->versoUpdatedAt $versoUpdatedAt;
  279.     return $this;
  280.   }
  281.   public function getVersoFile(): ?File
  282.   {
  283.     return $this->versoFile;
  284.   }
  285.   public function setVersoFile(?File $versoFile): self
  286.   {
  287.     $this->versoFile $versoFile;
  288.     if (null !== $this->versoFile) {
  289.       $this->versoUpdatedAt = new DateTimeImmutable();
  290.     }
  291.     return $this;
  292.   }
  293.   public function getPrintAccountingFirmName(): ?string
  294.   {
  295.     return $this->printAccountingFirmName;
  296.   }
  297.   public function setPrintAccountingFirmName(?string $printAccountingFirmName): self
  298.   {
  299.     $this->printAccountingFirmName $printAccountingFirmName;
  300.     return $this;
  301.   }
  302.   public function getPrintName(): ?string
  303.   {
  304.     return $this->printName;
  305.   }
  306.   public function setPrintName(?string $printName): self
  307.   {
  308.     $this->printName $printName;
  309.     return $this;
  310.   }
  311.   public function getPrintPostalCode(): ?string
  312.   {
  313.     return $this->printPostalCode;
  314.   }
  315.   public function setPrintPostalCode(?string $printPostalCode): self
  316.   {
  317.     $this->printPostalCode $printPostalCode;
  318.     return $this;
  319.   }
  320.   public function getPrintCity(): ?string
  321.   {
  322.     return $this->printCity;
  323.   }
  324.   public function setPrintCity(?string $printCity): self
  325.   {
  326.     $this->printCity $printCity;
  327.     return $this;
  328.   }
  329.   public function getPrintPhone(): ?string
  330.   {
  331.     return $this->printPhone;
  332.   }
  333.   public function setPrintPhone(?string $printPhone): self
  334.   {
  335.     $this->printPhone $printPhone;
  336.     return $this;
  337.   }
  338.   public function getPrintAddress(): ?string
  339.   {
  340.     return $this->printAddress;
  341.   }
  342.   public function setPrintAddress(?string $printAddress): self
  343.   {
  344.     $this->printAddress $printAddress;
  345.     return $this;
  346.   }
  347.   public function isValidate(): ?bool
  348.   {
  349.       return $this->validate;
  350.   }
  351.   public function setValidate(?bool $validate): self
  352.   {
  353.       $this->validate $validate;
  354.       return $this;
  355.   }
  356.   public function getAdjustment(): ?string
  357.   {
  358.       return $this->adjustment;
  359.   }
  360.   public function setAdjustment(?string $adjustment): self
  361.   {
  362.       $this->adjustment $adjustment;
  363.       return $this;
  364.   }
  365.   public function isShippingSameAddress(): ?bool
  366.   {
  367.       return $this->shippingSameAddress;
  368.   }
  369.   public function setShippingSameAddress(?bool $shippingSameAddress): self
  370.   {
  371.       $this->shippingSameAddress $shippingSameAddress;
  372.       return $this;
  373.   }
  374. }