<?php
namespace App\Entity\Gos;
use App\Repository\Gos\FastLeadRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FastLeadRepository::class)
*/
class FastLead
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $hash;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=FastLeadTemplate::class, inversedBy="fastLeads")
* @ORM\JoinColumn(nullable=false)
*/
private $fastLeadTemplate;
/**
* @ORM\Column(type="boolean", options={"default":0})
*/
private $isCompleted;
public function getId(): ?int
{
return $this->id;
}
public function getHash(): ?string
{
return $this->hash;
}
public function setHash(string $hash): self
{
$this->hash = $hash;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getFastLeadTemplate(): ?FastLeadTemplate
{
return $this->fastLeadTemplate;
}
public function setFastLeadTemplate(?FastLeadTemplate $fastLeadTemplate): self
{
$this->fastLeadTemplate = $fastLeadTemplate;
return $this;
}
public function getIsCompleted(): ?bool
{
return $this->isCompleted;
}
public function setIsCompleted(bool $isCompleted): self
{
$this->isCompleted = $isCompleted;
return $this;
}
}