<?php
namespace App\Entity;
use App\Repository\PipelineGmbAvisRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PipelineGmbAvisRepository::class)]
class PipelineGmbAvis
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\OneToOne(inversedBy: 'pipelineGmbAvis', targetEntity: AccountingFirm::class, cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private $accountingFirm;
#[ORM\Column(type: 'float', nullable: true)]
private $gmbScore;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $lastMailSentAt;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $trelloCardId;
#[ORM\Column(type: 'text', nullable: true)]
private $clientEmails;
#[ORM\Column(type: 'datetime_immutable')]
private $createdAt;
#[ORM\Column(type: 'datetime_immutable')]
private $updatedAt;
#[ORM\Column(type: 'integer')]
private $step = 1;
#[ORM\Column(type: 'integer', options: ['default' => 0])]
private $emailsSentCount = 0;
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
private $lastLotSentAt;
public function __construct()
{
$this->createdAt = new \DateTimeImmutable();
$this->updatedAt = new \DateTimeImmutable();
}
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 getGmbScore(): ?float
{
return $this->gmbScore;
}
public function setGmbScore(?float $gmbScore): self
{
$this->gmbScore = $gmbScore;
return $this;
}
public function getLastMailSentAt(): ?\DateTimeImmutable
{
return $this->lastMailSentAt;
}
public function setLastMailSentAt(?\DateTimeImmutable $lastMailSentAt): self
{
$this->lastMailSentAt = $lastMailSentAt;
return $this;
}
public function getTrelloCardId(): ?string
{
return $this->trelloCardId;
}
public function setTrelloCardId(?string $trelloCardId): self
{
$this->trelloCardId = $trelloCardId;
return $this;
}
public function getClientEmails(): ?string
{
return $this->clientEmails;
}
public function setClientEmails(?string $clientEmails): self
{
$this->clientEmails = $clientEmails;
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 getStep(): ?int
{
return $this->step;
}
public function setStep(int $step): self
{
$this->step = $step;
return $this;
}
public function getEmailsSentCount(): ?int
{
return $this->emailsSentCount;
}
public function setEmailsSentCount(int $emailsSentCount): self
{
$this->emailsSentCount = $emailsSentCount;
return $this;
}
public function getLastLotSentAt(): ?\DateTimeImmutable
{
return $this->lastLotSentAt;
}
public function setLastLotSentAt(?\DateTimeImmutable $lastLotSentAt): self
{
$this->lastLotSentAt = $lastLotSentAt;
return $this;
}
}