src/Entity/PipelineLinkedin.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PipelineLinkedinRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPipelineLinkedinRepository::class)]
  8. class PipelineLinkedin
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'pipelineLinkedins')]
  15.     private $accountingFirm;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $status;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $trelloCardShortId;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $trelloCardId;
  22.     #[ORM\Column(type'string'length255)]
  23.     private $category;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $codeType;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $code;
  28.     #[ORM\Column(type'integer'nullabletrue)]
  29.     private $relaunchCount;
  30.     #[ORM\Column(type'string'length255nullabletrue)]
  31.     private $username;
  32.     #[ORM\Column(type'string'length255nullabletrue)]
  33.     private $password;
  34.     #[ORM\OneToMany(mappedBy'pipelineLinkedin'targetEntityPipelineLinkedinDates::class, cascade: ['persist''remove'], orphanRemovaltrue)]
  35.     private $pipelineLinkedinDates;
  36.     #[ORM\Column(type'datetime_immutable')]
  37.     private $createdAt;
  38.     #[ORM\Column(type'datetime_immutable')]
  39.     private $updatedAt;
  40.     #[ORM\Column(type'string'length50options: ['default' => 'RECONNECTION'])]
  41.     private string $connectionType 'RECONNECTION';
  42.     #[ORM\Column(type'datetime_immutable'nullabletrue)]
  43.     private ?\DateTimeImmutable $reminderSentAt null;
  44.     public function __construct()
  45.     {
  46.         $this->pipelineLinkedinDates = new ArrayCollection();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getAccountingFirm(): ?AccountingFirm
  53.     {
  54.         return $this->accountingFirm;
  55.     }
  56.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  57.     {
  58.         $this->accountingFirm $accountingFirm;
  59.         return $this;
  60.     }
  61.     public function getStatus(): ?string
  62.     {
  63.         return $this->status;
  64.     }
  65.     public function setStatus(string $status): self
  66.     {
  67.         $this->status $status;
  68.         return $this;
  69.     }
  70.     public function getTrelloCardShortId(): ?string
  71.     {
  72.         return $this->trelloCardShortId;
  73.     }
  74.     public function setTrelloCardShortId(?string $trelloCardShortId): self
  75.     {
  76.         $this->trelloCardShortId $trelloCardShortId;
  77.         return $this;
  78.     }
  79.     public function getTrelloCardId(): ?string
  80.     {
  81.         return $this->trelloCardId;
  82.     }
  83.     public function setTrelloCardId(?string $trelloCardId): self
  84.     {
  85.         $this->trelloCardId $trelloCardId;
  86.         return $this;
  87.     }
  88.     public function getCategory(): ?string
  89.     {
  90.         return $this->category;
  91.     }
  92.     public function setCategory(string $category): self
  93.     {
  94.         $this->category $category;
  95.         return $this;
  96.     }
  97.     public function getCodeType(): ?string
  98.     {
  99.         return $this->codeType;
  100.     }
  101.     public function setCodeType(?string $codeType): self
  102.     {
  103.         $this->codeType $codeType;
  104.         return $this;
  105.     }
  106.     public function getCode(): ?string
  107.     {
  108.         return $this->code;
  109.     }
  110.     public function setCode(?string $code): self
  111.     {
  112.         $this->code $code;
  113.         return $this;
  114.     }
  115.     public function getRelaunchCount(): ?int
  116.     {
  117.         return $this->relaunchCount;
  118.     }
  119.     public function setRelaunchCount(?int $relaunchCount): self
  120.     {
  121.         $this->relaunchCount $relaunchCount;
  122.         return $this;
  123.     }
  124.     public function getUsername(): ?string
  125.     {
  126.         return $this->username;
  127.     }
  128.     public function setUsername(?string $username): self
  129.     {
  130.         $this->username $username;
  131.         return $this;
  132.     }
  133.     public function getPassword(): ?string
  134.     {
  135.         return $this->password;
  136.     }
  137.     public function setPassword(?string $password): self
  138.     {
  139.         $this->password $password;
  140.         return $this;
  141.     }
  142.     /**
  143.      * @return Collection<int, PipelineLinkedinDates>
  144.      */
  145.     public function getPipelineLinkedinDates(): Collection
  146.     {
  147.         return $this->pipelineLinkedinDates;
  148.     }
  149.     public function addPipelineLinkedinDate(PipelineLinkedinDates $pipelineLinkedinDate): self
  150.     {
  151.         if (!$this->pipelineLinkedinDates->contains($pipelineLinkedinDate)) {
  152.             $this->pipelineLinkedinDates[] = $pipelineLinkedinDate;
  153.             $pipelineLinkedinDate->setPipelineLinkedin($this);
  154.         }
  155.         return $this;
  156.     }
  157.     public function removePipelineLinkedinDate(PipelineLinkedinDates $pipelineLinkedinDate): self
  158.     {
  159.         if ($this->pipelineLinkedinDates->removeElement($pipelineLinkedinDate)) {
  160.             // set the owning side to null (unless already changed)
  161.             if ($pipelineLinkedinDate->getPipelineLinkedin() === $this) {
  162.                 $pipelineLinkedinDate->setPipelineLinkedin(null);
  163.             }
  164.         }
  165.         return $this;
  166.     }
  167.     public function getCreatedAt(): ?\DateTimeImmutable
  168.     {
  169.         return $this->createdAt;
  170.     }
  171.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  172.     {
  173.         $this->createdAt $createdAt;
  174.         return $this;
  175.     }
  176.     public function getUpdatedAt(): ?\DateTimeImmutable
  177.     {
  178.         return $this->updatedAt;
  179.     }
  180.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
  181.     {
  182.         $this->updatedAt $updatedAt;
  183.         return $this;
  184.     }
  185.     public function getConnectionType(): string
  186.     {
  187.         return $this->connectionType;
  188.     }
  189.     public function setConnectionType(string $connectionType): self
  190.     {
  191.         $this->connectionType $connectionType;
  192.         return $this;
  193.     }
  194.     public function getReminderSentAt(): ?\DateTimeImmutable
  195.     {
  196.         return $this->reminderSentAt;
  197.     }
  198.     public function setReminderSentAt(?\DateTimeImmutable $reminderSentAt): self
  199.     {
  200.         $this->reminderSentAt $reminderSentAt;
  201.         return $this;
  202.     }
  203. }