src/Entity/PipelineGmb.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PipelineGmbRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. /**
  10.  * @Vich\Uploadable
  11.  */
  12. #[ORM\Entity(repositoryClassPipelineGmbRepository::class)]
  13. class PipelineGmb
  14. {
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column(type'integer')]
  18.     private $id;
  19.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'pipelineGmbs')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private $accountingFirm;
  22.     #[ORM\Column(type'string'length255)]
  23.     private $status;
  24.     #[ORM\Column(type'datetime_immutable')]
  25.     private $createdAt;
  26.     #[ORM\Column(type'datetime_immutable')]
  27.     private $updatedAt;
  28.     #[ORM\Column(type'string'length255nullabletrue)]
  29.     private $trelloCardShortId;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $trelloCardId;
  32.     #[ORM\Column(type'string'length255)]
  33.     private $email;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $codeType;
  36.     #[ORM\OneToMany(mappedBy'pipelineGmb'targetEntityPipelineGmbDate::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  37.     private $pipelineGmbDates;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $code;
  40.     #[ORM\Column(type'integer'nullabletrue)]
  41.     private $relaunch_count;
  42.     #[ORM\ManyToOne(targetEntityPipelineContact::class)]
  43.     #[ORM\JoinColumn(nullablefalse)]
  44.     private ?PipelineContact $contact null;
  45.     #[ORM\Column(type'string'length255nullabletrue)]
  46.     private ?string $calendlyEventUri null;
  47.     #[ORM\Column(type'string'length255nullabletrue)]
  48.     private ?string $calendlyInviteeUri null;
  49.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  50.     private ?\DateTimeImmutable $calendlyScheduledAt null;
  51.     /**
  52.      * @Vich\UploadableField(mapping="pipeline_gmb_qrcode", fileNameProperty="qrCodePath")
  53.      */
  54.     private ?File $qrCodeFile null;
  55.     #[ORM\Column(type'string'length255nullabletrue)]
  56.     private ?string $qrCodePath null;
  57.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  58.     private ?\DateTimeImmutable $validatedAt null;
  59.     public function __construct()
  60.     {
  61.         $this->pipelineGmbDates = new ArrayCollection();
  62.     }
  63.     public function getId(): ?int
  64.     {
  65.         return $this->id;
  66.     }
  67.     public function getAccountingFirm(): ?AccountingFirm
  68.     {
  69.         return $this->accountingFirm;
  70.     }
  71.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  72.     {
  73.         $this->accountingFirm $accountingFirm;
  74.         return $this;
  75.     }
  76.     public function getStatus(): ?string
  77.     {
  78.         return $this->status;
  79.     }
  80.     public function setStatus(string $status): self
  81.     {
  82.         $this->status $status;
  83.         return $this;
  84.     }
  85.     public function getCreatedAt(): ?\DateTimeImmutable
  86.     {
  87.         return $this->createdAt;
  88.     }
  89.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  90.     {
  91.         $this->createdAt $createdAt;
  92.         return $this;
  93.     }
  94.     public function getUpdatedAt(): ?\DateTimeImmutable
  95.     {
  96.         return $this->updatedAt;
  97.     }
  98.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  99.     {
  100.         $this->updatedAt $updatedAt;
  101.         return $this;
  102.     }
  103.     public function getTrelloCardShortId(): ?string
  104.     {
  105.         return $this->trelloCardShortId;
  106.     }
  107.     public function setTrelloCardShortId(?string $trelloCardShortId): self
  108.     {
  109.         $this->trelloCardShortId $trelloCardShortId;
  110.         return $this;
  111.     }
  112.     public function getTrelloCardId(): ?string
  113.     {
  114.         return $this->trelloCardId;
  115.     }
  116.     public function setTrelloCardId(?string $trelloCardId): self
  117.     {
  118.         $this->trelloCardId $trelloCardId;
  119.         return $this;
  120.     }
  121.     public function getEmail(): ?string
  122.     {
  123.         return $this->email;
  124.     }
  125.     public function setEmail(string $email): self
  126.     {
  127.         $this->email $email;
  128.         return $this;
  129.     }
  130.     public function getCodeType(): ?string
  131.     {
  132.         return $this->codeType;
  133.     }
  134.     public function setCodeType(?string $codeType): self
  135.     {
  136.         $this->codeType $codeType;
  137.         return $this;
  138.     }
  139.     /**
  140.      * @return Collection<int, PipelineGmbDate>
  141.      */
  142.     public function getPipelineGmbDates(): Collection
  143.     {
  144.         return $this->pipelineGmbDates;
  145.     }
  146.     public function addPipelineGmbDate(PipelineGmbDate $pipelineGmbDate): self
  147.     {
  148.         if (!$this->pipelineGmbDates->contains($pipelineGmbDate)) {
  149.             $this->pipelineGmbDates[] = $pipelineGmbDate;
  150.             $pipelineGmbDate->setPipelineGmb($this);
  151.         }
  152.         return $this;
  153.     }
  154.     public function removePipelineGmbDate(PipelineGmbDate $pipelineGmbDate): self
  155.     {
  156.         if ($this->pipelineGmbDates->removeElement($pipelineGmbDate)) {
  157.             // set the owning side to null (unless already changed)
  158.             if ($pipelineGmbDate->getPipelineGmb() === $this) {
  159.                 $pipelineGmbDate->setPipelineGmb(null);
  160.             }
  161.         }
  162.         return $this;
  163.     }
  164.     public function getCode(): ?string
  165.     {
  166.         return $this->code;
  167.     }
  168.     public function setCode(?string $code): self
  169.     {
  170.         $this->code $code;
  171.         return $this;
  172.     }
  173.     public function getRelaunchCount(): ?int
  174.     {
  175.         return $this->relaunch_count;
  176.     }
  177.     public function setRelaunchCount(?int $relaunch_count): self
  178.     {
  179.         $this->relaunch_count $relaunch_count;
  180.         return $this;
  181.     }
  182.     public function getContact(): ?PipelineContact
  183.     {
  184.         return $this->contact;
  185.     }
  186.     public function setContact(?PipelineContact $contact): self
  187.     {
  188.         $this->contact $contact;
  189.         return $this;
  190.     }
  191.     public function getCalendlyEventUri(): ?string
  192.     {
  193.         return $this->calendlyEventUri;
  194.     }
  195.     public function setCalendlyEventUri(?string $calendlyEventUri): self
  196.     {
  197.         $this->calendlyEventUri $calendlyEventUri;
  198.         return $this;
  199.     }
  200.     public function getCalendlyInviteeUri(): ?string
  201.     {
  202.         return $this->calendlyInviteeUri;
  203.     }
  204.     public function setCalendlyInviteeUri(?string $calendlyInviteeUri): self
  205.     {
  206.         $this->calendlyInviteeUri $calendlyInviteeUri;
  207.         return $this;
  208.     }
  209.     public function getCalendlyScheduledAt(): ?\DateTimeImmutable
  210.     {
  211.         return $this->calendlyScheduledAt;
  212.     }
  213.     public function setCalendlyScheduledAt(?\DateTimeImmutable $calendlyScheduledAt): self
  214.     {
  215.         $this->calendlyScheduledAt $calendlyScheduledAt;
  216.         return $this;
  217.     }
  218.     public function getCalendlyScheduledAtFormatted(): ?string
  219.     {
  220.         return $this->calendlyScheduledAt?->format('d/m/Y H:i');
  221.     }
  222.     public function setQrCodeFile(?File $file null): void
  223.     {
  224.         $this->qrCodeFile $file;
  225.         if ($file !== null) {
  226.             $this->updatedAt = new \DateTimeImmutable();
  227.         }
  228.     }
  229.     public function getQrCodeFile(): ?File
  230.     {
  231.         return $this->qrCodeFile;
  232.     }
  233.     public function getQrCodePath(): ?string
  234.     {
  235.         return $this->qrCodePath;
  236.     }
  237.     public function setQrCodePath(?string $qrCodePath): self
  238.     {
  239.         $this->qrCodePath $qrCodePath;
  240.         return $this;
  241.     }
  242.     public function getValidatedAt(): ?\DateTimeImmutable
  243.     {
  244.         return $this->validatedAt;
  245.     }
  246.     public function setValidatedAt(?\DateTimeImmutable $validatedAt): self
  247.     {
  248.         $this->validatedAt $validatedAt;
  249.         return $this;
  250.     }
  251. }