src/Entity/TousEnLigneContact.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TousEnLigneContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTousEnLigneContactRepository::class)]
  6. class TousEnLigneContact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $prenom;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $nom;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $email;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $phone;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $nameCompany;
  22.     #[ORM\Column(type'string'length255)]
  23.     private $siret;
  24.     #[ORM\Column(type'string'length255)]
  25.     private $fonction;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $emailDirigeant;
  28.     #[ORM\Column(type'string'length255)]
  29.     private $address;
  30.     #[ORM\Column(type'string'length255)]
  31.     private $codePostal;
  32.     #[ORM\Column(type'string'length255)]
  33.     private $ville;
  34.     #[ORM\Column(type'string'length255)]
  35.     private $secteur;
  36.     #[ORM\Column(type'string'length255)]
  37.     private $taille;
  38.     #[ORM\Column(type'boolean')]
  39.     private $siteInternet;
  40.     #[ORM\Column(type'array'nullabletrue)]
  41.     private $outilsUsed = [];
  42.     #[ORM\Column(type'array')]
  43.     private $outilsWant = [];
  44.     #[ORM\Column(type'datetime',options:['default'=> 'CURRENT_TIMESTAMP'])]
  45.     private $createdAt;
  46.     #[ORM\Column(type'datetime',options:['default'=> 'CURRENT_TIMESTAMP'])]
  47.     private $updatedAt;
  48.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'tousEnLigneContacts')]
  49.     private $cabinet;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getPrenom(): ?string
  55.     {
  56.         return $this->prenom;
  57.     }
  58.     public function setPrenom(string $prenom): self
  59.     {
  60.         $this->prenom $prenom;
  61.         return $this;
  62.     }
  63.     public function getNom(): ?string
  64.     {
  65.         return $this->nom;
  66.     }
  67.     public function setNom(string $nom): self
  68.     {
  69.         $this->nom $nom;
  70.         return $this;
  71.     }
  72.     public function getEmail(): ?string
  73.     {
  74.         return $this->email;
  75.     }
  76.     public function setEmail(string $email): self
  77.     {
  78.         $this->email $email;
  79.         return $this;
  80.     }
  81.     public function getPhone(): ?string
  82.     {
  83.         return $this->phone;
  84.     }
  85.     public function setPhone(string $phone): self
  86.     {
  87.         $this->phone $phone;
  88.         return $this;
  89.     }
  90.     public function getNameCompany(): ?string
  91.     {
  92.         return $this->nameCompany;
  93.     }
  94.     public function setNameCompany(string $nameCompany): self
  95.     {
  96.         $this->nameCompany $nameCompany;
  97.         return $this;
  98.     }
  99.     public function getSiret(): ?string
  100.     {
  101.         return $this->siret;
  102.     }
  103.     public function setSiret(string $siret): self
  104.     {
  105.         $this->siret $siret;
  106.         return $this;
  107.     }
  108.     public function getFonction(): ?string
  109.     {
  110.         return $this->fonction;
  111.     }
  112.     public function setFonction(string $fonction): self
  113.     {
  114.         $this->fonction $fonction;
  115.         return $this;
  116.     }
  117.     public function getEmailDirigeant(): ?string
  118.     {
  119.         return $this->emailDirigeant;
  120.     }
  121.     public function setEmailDirigeant(?string $emailDirigeant): self
  122.     {
  123.         $this->emailDirigeant $emailDirigeant;
  124.         return $this;
  125.     }
  126.     public function getAddress(): ?string
  127.     {
  128.         return $this->address;
  129.     }
  130.     public function setAddress(string $address): self
  131.     {
  132.         $this->address $address;
  133.         return $this;
  134.     }
  135.     public function getCodePostal(): ?string
  136.     {
  137.         return $this->codePostal;
  138.     }
  139.     public function setCodePostal(string $codePostal): self
  140.     {
  141.         $this->codePostal $codePostal;
  142.         return $this;
  143.     }
  144.     public function getVille(): ?string
  145.     {
  146.         return $this->ville;
  147.     }
  148.     public function setVille(string $ville): self
  149.     {
  150.         $this->ville $ville;
  151.         return $this;
  152.     }
  153.     public function getSecteur(): ?string
  154.     {
  155.         return $this->secteur;
  156.     }
  157.     public function setSecteur(string $secteur): self
  158.     {
  159.         $this->secteur $secteur;
  160.         return $this;
  161.     }
  162.     public function getTaille(): ?string
  163.     {
  164.         return $this->taille;
  165.     }
  166.     public function setTaille(string $taille): self
  167.     {
  168.         $this->taille $taille;
  169.         return $this;
  170.     }
  171.     public function isSiteInternet(): ?bool
  172.     {
  173.         return $this->siteInternet;
  174.     }
  175.     public function setSiteInternet(bool $siteInternet): self
  176.     {
  177.         $this->siteInternet $siteInternet;
  178.         return $this;
  179.     }
  180.     public function getOutilsUsed(): ?array
  181.     {
  182.         return $this->outilsUsed;
  183.     }
  184.     public function setOutilsUsed(?array $outilsUsed): self
  185.     {
  186.         $this->outilsUsed $outilsUsed;
  187.         return $this;
  188.     }
  189.     public function getOutilsWant(): ?array
  190.     {
  191.         return $this->outilsWant;
  192.     }
  193.     public function setOutilsWant(array $outilsWant): self
  194.     {
  195.         $this->outilsWant $outilsWant;
  196.         return $this;
  197.     }
  198.     public function getCreatedAt(): ?\DateTimeInterface
  199.     {
  200.         return $this->createdAt;
  201.     }
  202.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  203.     {
  204.         $this->createdAt $createdAt;
  205.         return $this;
  206.     }
  207.     public function getUpdatedAt(): ?\DateTimeInterface
  208.     {
  209.         return $this->updatedAt;
  210.     }
  211.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  212.     {
  213.         $this->updatedAt $updatedAt;
  214.         return $this;
  215.     }
  216.     #[ORM\PrePersist]
  217.     #[ORM\PreUpdate]
  218.     public function updateTimestamps()
  219.     {
  220.         if ($this->getCreatedAt()===null) {
  221.             $this->setCreatedAt(new \DateTimeImmutable);
  222.         }
  223.         $this->setUpdatedAt(new \DateTimeImmutable);
  224.     }
  225.     public function getCabinet(): ?AccountingFirm
  226.     {
  227.         return $this->cabinet;
  228.     }
  229.     public function setCabinet(?AccountingFirm $cabinet): self
  230.     {
  231.         $this->cabinet $cabinet;
  232.         return $this;
  233.     }
  234. }