<?php
namespace App\Entity;
use App\Repository\PipelineMailjetRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PipelineMailjetRepository::class)]
class PipelineMailjet
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: AccountingFirm::class, inversedBy: 'pipelineMailjets')]
private $accountingFirm;
#[ORM\Column(type: 'string', length: 255)]
private $status;
#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
#[ORM\Column(type: 'datetime_immutable')]
private $updatedAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $dns;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $txt;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $firstMailSendAt;
#[ORM\Column(type: 'boolean', nullable: true)]
private $selfManaged;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $trelloCardId;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $urlLoginHost;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $username;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $password;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $spf_domaine;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $spf_txt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $dkimDomaine;
#[ORM\Column(type: 'text', nullable: true)]
private $dkimTxt;
#[ORM\Column(type: 'text', nullable: true)]
private $dispoDoubleAuth;
#[ORM\Column(type: 'boolean', nullable: true)]
private $skipDomain;
#[ORM\OneToMany(mappedBy: 'pipelineMailjet', targetEntity: PipelineMailjetDate::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
private $pipelineMailjetDates;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $code_2fa;
#[ORM\Column(type: 'boolean', nullable: true)]
private $success2fa;
#[ORM\Column(type: 'integer', nullable: true)]
private $relaunch_count;
public function __construct()
{
$this->pipelineMailjetDates = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getAccountingFirm(): ?AccountingFirm
{
return $this->accountingFirm;
}
public function setAccountingFirm(?AccountingFirm $accountingFirm): self
{
$this->accountingFirm = $accountingFirm;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getDns(): ?string
{
return $this->dns;
}
public function setDns(?string $dns): self
{
$this->dns = $dns;
return $this;
}
public function getTxt(): ?string
{
return $this->txt;
}
public function setTxt(?string $txt): self
{
$this->txt = $txt;
return $this;
}
public function getFirstMailSendAt(): ?\DateTimeImmutable
{
return $this->firstMailSendAt;
}
public function setFirstMailSendAt(?\DateTimeImmutable $firstMailSendAt): self
{
$this->firstMailSendAt = $firstMailSendAt;
return $this;
}
public function isSelfManaged(): ?bool
{
return $this->selfManaged;
}
public function setSelfManaged(?bool $selfManaged): self
{
$this->selfManaged = $selfManaged;
return $this;
}
public function getTrelloCardId(): ?string
{
return $this->trelloCardId;
}
public function setTrelloCardId(?string $trelloCardId): self
{
$this->trelloCardId = $trelloCardId;
return $this;
}
public function getUrlLoginHost(): ?string
{
return $this->urlLoginHost;
}
public function setUrlLoginHost(?string $urlLoginHost): self
{
$this->urlLoginHost = $urlLoginHost;
return $this;
}
public function getUsername(): ?string
{
return $this->username;
}
public function setUsername(?string $username): self
{
$this->username = $username;
return $this;
}
public function getPassword(): ?string
{
return $this->password;
}
public function setPassword(?string $password): self
{
$this->password = $password;
return $this;
}
public function getSpfDomaine(): ?string
{
return $this->spf_domaine;
}
public function setSpfDomaine(?string $spf_domaine): self
{
$this->spf_domaine = $spf_domaine;
return $this;
}
public function getSpfTxt(): ?string
{
return $this->spf_txt;
}
public function setSpfTxt(?string $spf_txt): self
{
$this->spf_txt = $spf_txt;
return $this;
}
public function getDkimDomaine(): ?string
{
return $this->dkimDomaine;
}
public function setDkimDomaine(?string $dkimDomaine): self
{
$this->dkimDomaine = $dkimDomaine;
return $this;
}
public function getDkimTxt(): ?string
{
return $this->dkimTxt;
}
public function setDkimTxt(?string $dkimTxt): self
{
$this->dkimTxt = $dkimTxt;
return $this;
}
public function getDispoDoubleAuth(): ?string
{
return $this->dispoDoubleAuth;
}
public function setDispoDoubleAuth(?string $dispoDoubleAuth): self
{
$this->dispoDoubleAuth = $dispoDoubleAuth;
return $this;
}
public function isSkipDomain(): ?bool
{
return $this->skipDomain;
}
public function setSkipDomain(?bool $skipDomain): self
{
$this->skipDomain = $skipDomain;
return $this;
}
/**
* @return Collection<int, PipelineMailjetDate>
*/
public function getPipelineMailjetDates(): Collection
{
return $this->pipelineMailjetDates;
}
public function addPipelineMailjetDate(PipelineMailjetDate $pipelineMailjetDate): self
{
if (!$this->pipelineMailjetDates->contains($pipelineMailjetDate)) {
$this->pipelineMailjetDates[] = $pipelineMailjetDate;
$pipelineMailjetDate->setPipelineMailjet($this);
}
return $this;
}
public function removePipelineMailjetDate(PipelineMailjetDate $pipelineMailjetDate): self
{
if ($this->pipelineMailjetDates->removeElement($pipelineMailjetDate)) {
// set the owning side to null (unless already changed)
if ($pipelineMailjetDate->getPipelineMailjet() === $this) {
$pipelineMailjetDate->setPipelineMailjet(null);
}
}
return $this;
}
public function getCode2fa(): ?string
{
return $this->code_2fa;
}
public function setCode2fa(?string $code_2fa): self
{
$this->code_2fa = $code_2fa;
return $this;
}
public function isSuccess2fa(): ?bool
{
return $this->success2fa;
}
public function setSuccess2fa(?bool $success2fa): self
{
$this->success2fa = $success2fa;
return $this;
}
public function getRelaunchCount(): ?int
{
return $this->relaunch_count;
}
public function setRelaunchCount(?int $relaunch_count): self
{
$this->relaunch_count = $relaunch_count;
return $this;
}
}