<?php
namespace App\Entity;
use App\Repository\TousEnLigneContactRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TousEnLigneContactRepository::class)]
class TousEnLigneContact
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $prenom;
#[ORM\Column(type: 'string', length: 255)]
private $nom;
#[ORM\Column(type: 'string', length: 255)]
private $email;
#[ORM\Column(type: 'string', length: 255)]
private $phone;
#[ORM\Column(type: 'string', length: 255)]
private $nameCompany;
#[ORM\Column(type: 'string', length: 255)]
private $siret;
#[ORM\Column(type: 'string', length: 255)]
private $fonction;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $emailDirigeant;
#[ORM\Column(type: 'string', length: 255)]
private $address;
#[ORM\Column(type: 'string', length: 255)]
private $codePostal;
#[ORM\Column(type: 'string', length: 255)]
private $ville;
#[ORM\Column(type: 'string', length: 255)]
private $secteur;
#[ORM\Column(type: 'string', length: 255)]
private $taille;
#[ORM\Column(type: 'boolean')]
private $siteInternet;
#[ORM\Column(type: 'array', nullable: true)]
private $outilsUsed = [];
#[ORM\Column(type: 'array')]
private $outilsWant = [];
#[ORM\Column(type: 'datetime',options:['default'=> 'CURRENT_TIMESTAMP'])]
private $createdAt;
#[ORM\Column(type: 'datetime',options:['default'=> 'CURRENT_TIMESTAMP'])]
private $updatedAt;
#[ORM\ManyToOne(targetEntity: AccountingFirm::class, inversedBy: 'tousEnLigneContacts')]
private $cabinet;
public function getId(): ?int
{
return $this->id;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getNameCompany(): ?string
{
return $this->nameCompany;
}
public function setNameCompany(string $nameCompany): self
{
$this->nameCompany = $nameCompany;
return $this;
}
public function getSiret(): ?string
{
return $this->siret;
}
public function setSiret(string $siret): self
{
$this->siret = $siret;
return $this;
}
public function getFonction(): ?string
{
return $this->fonction;
}
public function setFonction(string $fonction): self
{
$this->fonction = $fonction;
return $this;
}
public function getEmailDirigeant(): ?string
{
return $this->emailDirigeant;
}
public function setEmailDirigeant(?string $emailDirigeant): self
{
$this->emailDirigeant = $emailDirigeant;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(string $ville): self
{
$this->ville = $ville;
return $this;
}
public function getSecteur(): ?string
{
return $this->secteur;
}
public function setSecteur(string $secteur): self
{
$this->secteur = $secteur;
return $this;
}
public function getTaille(): ?string
{
return $this->taille;
}
public function setTaille(string $taille): self
{
$this->taille = $taille;
return $this;
}
public function isSiteInternet(): ?bool
{
return $this->siteInternet;
}
public function setSiteInternet(bool $siteInternet): self
{
$this->siteInternet = $siteInternet;
return $this;
}
public function getOutilsUsed(): ?array
{
return $this->outilsUsed;
}
public function setOutilsUsed(?array $outilsUsed): self
{
$this->outilsUsed = $outilsUsed;
return $this;
}
public function getOutilsWant(): ?array
{
return $this->outilsWant;
}
public function setOutilsWant(array $outilsWant): self
{
$this->outilsWant = $outilsWant;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
#[ORM\PrePersist]
#[ORM\PreUpdate]
public function updateTimestamps()
{
if ($this->getCreatedAt()===null) {
$this->setCreatedAt(new \DateTimeImmutable);
}
$this->setUpdatedAt(new \DateTimeImmutable);
}
public function getCabinet(): ?AccountingFirm
{
return $this->cabinet;
}
public function setCabinet(?AccountingFirm $cabinet): self
{
$this->cabinet = $cabinet;
return $this;
}
}