<?php
// src/Entity/Membership.php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* @ORM\Entity(repositoryClass="App\Repository\MembershipRepository")
* @ORM\Table(name="69pixl_membership")
*/
class Membership
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $status;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedFilesByCustomer;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedFilesByCustomerDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedFilesBySeller;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedFilesBySellerDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedFolderBySeller;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedFolderBySellerDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedFolderByCustomer;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedFolderByCustomerDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedDicStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedDicDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedDicAccept;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedFicStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedFicDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedFicAccept;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedBaStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedBaDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedBaAccept;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedSepaStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedSepaDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedSepaAccept;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedStatusStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedStatusDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedStatusAccept;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validatedReglementStatus;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $validatedReglementDate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $validatedReglementAccept;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $urlSign;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $urlSignSeller;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $signedSeller;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $signedSellerHooks;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numberMembershipFolder;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $mailSendCustomer;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $mailSendSeller;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $mailSendGestion;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $errorYouSign;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $platformVersion;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $yousignVersion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $documentsVersion;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $signDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $memberId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sellerMemberId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $procedureId;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sendMailNoSign;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $sendMailNoSignDate;
/**
* @var User
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="memberships")
*/
protected $user;
/**
* @var Dic
* @ORM\OneToOne(targetEntity="App\Entity\Dic", inversedBy="membership")
*/
protected $dic;
/**
* @var Dic
* @ORM\OneToOne(targetEntity="App\Entity\Fic", inversedBy="membership")
*/
protected $fic;
/**
* @var Ba
* @ORM\OneToOne(targetEntity="App\Entity\Ba", inversedBy="membership")
*/
protected $ba;
/**
* @var FileSends[]
* @ORM\OneToMany(targetEntity="App\Entity\FileSend", mappedBy="membership")
*/
protected $FileSends;
public function __construct()
{
$this->FileSends = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getDic(): ?Dic
{
return $this->dic;
}
public function setDic(?Dic $dic): self
{
$this->dic = $dic;
return $this;
}
public function getBa(): ?Ba
{
return $this->ba;
}
public function setBa(?Ba $ba): self
{
$this->ba = $ba;
return $this;
}
/**
* @return Collection|FileSend[]
*/
public function getFileSends(): Collection
{
return $this->FileSends;
}
public function addFileSend(FileSend $fileSend): self
{
if (!$this->FileSends->contains($fileSend)) {
$this->FileSends[] = $fileSend;
$fileSend->setMembership($this);
}
return $this;
}
public function removeFileSend(FileSend $fileSend): self
{
if ($this->FileSends->contains($fileSend)) {
$this->FileSends->removeElement($fileSend);
// set the owning side to null (unless already changed)
if ($fileSend->getMembership() === $this) {
$fileSend->setMembership(null);
}
}
return $this;
}
/**
* @return Collection|FileSend[]
*/
public function getFileByType($type)
{
$file = null;
foreach ($this->FileSends as $fileTemp) {
if($fileTemp->getType() == $type){
$file = $fileTemp;
}
}
return $file;
}
/**
* @return Collection|FileSend[]
*/
public function getFileById($id)
{
$file = null;
foreach ($this->FileSends as $fileTemp) {
if($fileTemp->getId() == $id){
$file = $fileTemp;
}
}
return $file;
}
/**
* @return Collection|FileSend[]
*/
public function getOtherFile()
{
$files = [];
foreach ($this->FileSends as $fileTemp) {
if($fileTemp->getType() == "other-file"){
$files[] = $fileTemp;
}
}
return $files;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getValidatedDicStatus(): ?string
{
return $this->validatedDicStatus;
}
public function setValidatedDicStatus(?string $validatedDicStatus): self
{
$this->validatedDicStatus = $validatedDicStatus;
return $this;
}
public function getValidatedDicDate(): ?\DateTimeInterface
{
return $this->validatedDicDate;
}
public function setValidatedDicDate(?\DateTimeInterface $validatedDicDate): self
{
$this->validatedDicDate = $validatedDicDate;
return $this;
}
public function getValidatedDicAccept(): ?bool
{
return $this->validatedDicAccept;
}
public function setValidatedDicAccept(?bool $validatedDicAccept): self
{
$this->validatedDicAccept = $validatedDicAccept;
return $this;
}
public function getValidatedBaStatus(): ?string
{
return $this->validatedBaStatus;
}
public function setValidatedBaStatus(?string $validatedBaStatus): self
{
$this->validatedBaStatus = $validatedBaStatus;
return $this;
}
public function getValidatedBaDate(): ?\DateTimeInterface
{
return $this->validatedBaDate;
}
public function setValidatedBaDate(?\DateTimeInterface $validatedBaDate): self
{
$this->validatedBaDate = $validatedBaDate;
return $this;
}
public function getValidatedBaAccept(): ?bool
{
return $this->validatedBaAccept;
}
public function setValidatedBaAccept(?bool $validatedBaAccept): self
{
$this->validatedBaAccept = $validatedBaAccept;
return $this;
}
public function getValidatedSepaStatus(): ?string
{
return $this->validatedSepaStatus;
}
public function setValidatedSepaStatus(?string $validatedSepaStatus): self
{
$this->validatedSepaStatus = $validatedSepaStatus;
return $this;
}
public function getValidatedSepaDate(): ?\DateTimeInterface
{
return $this->validatedSepaDate;
}
public function setValidatedSepaDate(?\DateTimeInterface $validatedSepaDate): self
{
$this->validatedSepaDate = $validatedSepaDate;
return $this;
}
public function getValidatedSepaAccept(): ?bool
{
return $this->validatedSepaAccept;
}
public function setValidatedSepaAccept(?bool $validatedSepaAccept): self
{
$this->validatedSepaAccept = $validatedSepaAccept;
return $this;
}
public function getValidatedStatusStatus(): ?string
{
return $this->validatedStatusStatus;
}
public function setValidatedStatusStatus(?string $validatedStatusStatus): self
{
$this->validatedStatusStatus = $validatedStatusStatus;
return $this;
}
public function getValidatedStatusDate(): ?\DateTimeInterface
{
return $this->validatedStatusDate;
}
public function setValidatedStatusDate(?\DateTimeInterface $validatedStatusDate): self
{
$this->validatedStatusDate = $validatedStatusDate;
return $this;
}
public function getValidatedStatusAccept(): ?bool
{
return $this->validatedStatusAccept;
}
public function setValidatedStatusAccept(?bool $validatedStatusAccept): self
{
$this->validatedStatusAccept = $validatedStatusAccept;
return $this;
}
public function getValidatedFilesByCustomer(): ?bool
{
return $this->validatedFilesByCustomer;
}
public function setValidatedFilesByCustomer(?bool $validatedFilesByCustomer): self
{
$this->validatedFilesByCustomer = $validatedFilesByCustomer;
return $this;
}
public function getValidatedFilesByCustomerDate(): ?\DateTimeInterface
{
return $this->validatedFilesByCustomerDate;
}
public function setValidatedFilesByCustomerDate(?\DateTimeInterface $validatedFilesByCustomerDate): self
{
$this->validatedFilesByCustomerDate = $validatedFilesByCustomerDate;
return $this;
}
public function getValidatedFilesBySeller(): ?bool
{
return $this->validatedFilesBySeller;
}
public function setValidatedFilesBySeller(?bool $validatedFilesBySeller): self
{
$this->validatedFilesBySeller = $validatedFilesBySeller;
return $this;
}
public function getValidatedFilesBySellerDate(): ?\DateTimeInterface
{
return $this->validatedFilesBySellerDate;
}
public function setValidatedFilesBySellerDate(?\DateTimeInterface $validatedFilesBySellerDate): self
{
$this->validatedFilesBySellerDate = $validatedFilesBySellerDate;
return $this;
}
public function getValidatedFolderBySeller(): ?bool
{
return $this->validatedFolderBySeller;
}
public function setValidatedFolderBySeller(?bool $validatedFolderBySeller): self
{
$this->validatedFolderBySeller = $validatedFolderBySeller;
return $this;
}
public function getValidatedFolderBySellerDate(): ?\DateTimeInterface
{
return $this->validatedFolderBySellerDate;
}
public function setValidatedFolderBySellerDate(?\DateTimeInterface $validatedFolderBySellerDate): self
{
$this->validatedFolderBySellerDate = $validatedFolderBySellerDate;
return $this;
}
public function getValidatedFolderByCustomer(): ?bool
{
return $this->validatedFolderByCustomer;
}
public function setValidatedFolderByCustomer(?bool $validatedFolderByCustomer): self
{
$this->validatedFolderByCustomer = $validatedFolderByCustomer;
return $this;
}
public function getValidatedFolderByCustomerDate(): ?\DateTimeInterface
{
return $this->validatedFolderByCustomerDate;
}
public function setValidatedFolderByCustomerDate(?\DateTimeInterface $validatedFolderByCustomerDate): self
{
$this->validatedFolderByCustomerDate = $validatedFolderByCustomerDate;
return $this;
}
public function getUrlSign(): ?string
{
return $this->urlSign;
}
public function setUrlSign(?string $urlSign): self
{
$this->urlSign = $urlSign;
return $this;
}
public function getUrlSignSeller(): ?string
{
return $this->urlSignSeller;
}
public function setUrlSignSeller(?string $urlSignSeller): self
{
$this->urlSignSeller = $urlSignSeller;
return $this;
}
public function getValidatedReglementStatus(): ?string
{
return $this->validatedReglementStatus;
}
public function setValidatedReglementStatus(?string $validatedReglementStatus): self
{
$this->validatedReglementStatus = $validatedReglementStatus;
return $this;
}
public function getValidatedReglementDate(): ?\DateTimeInterface
{
return $this->validatedReglementDate;
}
public function setValidatedReglementDate(?\DateTimeInterface $validatedReglementDate): self
{
$this->validatedReglementDate = $validatedReglementDate;
return $this;
}
public function getValidatedReglementAccept(): ?bool
{
return $this->validatedReglementAccept;
}
public function setValidatedReglementAccept(?bool $validatedReglementAccept): self
{
$this->validatedReglementAccept = $validatedReglementAccept;
return $this;
}
public function getNumberMembershipFolder(): ?string
{
return $this->numberMembershipFolder;
}
public function setNumberMembershipFolder(?string $numberMembershipFolder): self
{
$this->numberMembershipFolder = $numberMembershipFolder;
return $this;
}
public function getMailSendCustomer(): ?bool
{
return $this->mailSendCustomer;
}
public function setMailSendCustomer(?bool $mailSendCustomer): self
{
$this->mailSendCustomer = $mailSendCustomer;
return $this;
}
public function getMailSendSeller(): ?bool
{
return $this->mailSendSeller;
}
public function setMailSendSeller(?bool $mailSendSeller): self
{
$this->mailSendSeller = $mailSendSeller;
return $this;
}
public function getMailSendGestion(): ?bool
{
return $this->mailSendGestion;
}
public function setMailSendGestion(?bool $mailSendGestion): self
{
$this->mailSendGestion = $mailSendGestion;
return $this;
}
public function getErrorYouSign(): ?string
{
return $this->errorYouSign;
}
public function setErrorYouSign(?string $errorYouSign): self
{
$this->errorYouSign = $errorYouSign;
return $this;
}
public function isValidatedFilesByCustomer(): ?bool
{
return $this->validatedFilesByCustomer;
}
public function isValidatedFilesBySeller(): ?bool
{
return $this->validatedFilesBySeller;
}
public function isValidatedFolderBySeller(): ?bool
{
return $this->validatedFolderBySeller;
}
public function isValidatedFolderByCustomer(): ?bool
{
return $this->validatedFolderByCustomer;
}
public function isValidatedDicAccept(): ?bool
{
return $this->validatedDicAccept;
}
public function isValidatedBaAccept(): ?bool
{
return $this->validatedBaAccept;
}
public function isValidatedSepaAccept(): ?bool
{
return $this->validatedSepaAccept;
}
public function isValidatedStatusAccept(): ?bool
{
return $this->validatedStatusAccept;
}
public function isValidatedReglementAccept(): ?bool
{
return $this->validatedReglementAccept;
}
public function isMailSendCustomer(): ?bool
{
return $this->mailSendCustomer;
}
public function isMailSendSeller(): ?bool
{
return $this->mailSendSeller;
}
public function isMailSendGestion(): ?bool
{
return $this->mailSendGestion;
}
public function getPlatformVersion(): ?int
{
return $this->platformVersion;
}
public function setPlatformVersion(?int $platformVersion): self
{
$this->platformVersion = $platformVersion;
return $this;
}
public function getFic(): ?Fic
{
return $this->fic;
}
public function setFic(?Fic $fic): self
{
$this->fic = $fic;
return $this;
}
public function getValidatedFicStatus(): ?string
{
return $this->validatedFicStatus;
}
public function setValidatedFicStatus(?string $validatedFicStatus): self
{
$this->validatedFicStatus = $validatedFicStatus;
return $this;
}
public function getValidatedFicDate(): ?\DateTimeInterface
{
return $this->validatedFicDate;
}
public function setValidatedFicDate(?\DateTimeInterface $validatedFicDate): self
{
$this->validatedFicDate = $validatedFicDate;
return $this;
}
public function isValidatedFicAccept(): ?bool
{
return $this->validatedFicAccept;
}
public function setValidatedFicAccept(?bool $validatedFicAccept): self
{
$this->validatedFicAccept = $validatedFicAccept;
return $this;
}
public function isSignedSeller(): ?bool
{
return $this->signedSeller;
}
public function setSignedSeller(?bool $signedSeller): self
{
$this->signedSeller = $signedSeller;
return $this;
}
public function isSignedSellerHooks(): ?bool
{
return $this->signedSellerHooks;
}
public function setSignedSellerHooks(?bool $signedSellerHooks): self
{
$this->signedSellerHooks = $signedSellerHooks;
return $this;
}
public function getSignDate(): ?\DateTimeInterface
{
return $this->signDate;
}
public function setSignDate(?\DateTimeInterface $signDate): self
{
$this->signDate = $signDate;
return $this;
}
public function getMemberId(): ?string
{
return $this->memberId;
}
public function setMemberId(?string $memberId): self
{
$this->memberId = $memberId;
return $this;
}
public function getProcedureId(): ?string
{
return $this->procedureId;
}
public function setProcedureId(?string $procedureId): self
{
$this->procedureId = $procedureId;
return $this;
}
public function getDocumentsVersion(): ?string
{
return $this->documentsVersion;
}
public function setDocumentsVersion(?string $documentsVersion): self
{
$this->documentsVersion = $documentsVersion;
return $this;
}
public function isSendMailNoSign(): ?bool
{
return $this->sendMailNoSign;
}
public function setSendMailNoSign(?bool $sendMailNoSign): static
{
$this->sendMailNoSign = $sendMailNoSign;
return $this;
}
public function getSendMailNoSignDate(): ?\DateTimeInterface
{
return $this->sendMailNoSignDate;
}
public function setSendMailNoSignDate(?\DateTimeInterface $sendMailNoSignDate): static
{
$this->sendMailNoSignDate = $sendMailNoSignDate;
return $this;
}
public function getSellerMemberId(): ?string
{
return $this->sellerMemberId;
}
public function setSellerMemberId(?string $sellerMemberId): static
{
$this->sellerMemberId = $sellerMemberId;
return $this;
}
public function getYousignVersion(): ?int
{
return $this->yousignVersion;
}
public function setYousignVersion(?int $yousignVersion): static
{
$this->yousignVersion = $yousignVersion;
return $this;
}
}