src/Entity/Contact.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ContactRepository::class)]
  6. class Contact
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type: 'integer')]
  11.     private $id;
  12.     #[ORM\Column(type: 'string', length: 255)]
  13.     private $lastname;
  14.     #[ORM\Column(type: 'string', length: 255)]
  15.     private $firstname;
  16.     #[ORM\Column(type: 'string', length: 255)]
  17.     private $telephone;
  18.     #[ORM\Column(type: 'string', length: 255)]
  19.     private $email;
  20.     #[ORM\Column(type: 'string', length: 255)]
  21.     private $postalCode;
  22.     #[ORM\Column(type: 'string', length: 255)]
  23.     private $society;
  24.     #[ORM\Column(type: 'string', length: 255)]
  25.     private $message;
  26.     #[ORM\ManyToOne(targetEntity: Pole::class)]
  27.     #[ORM\JoinColumn(nullable: false)]
  28.     private $pole;
  29.     #[ORM\Column(type: 'boolean')]
  30.     private $legalTerms;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getLastname(): ?string
  36.     {
  37.         return $this->lastname;
  38.     }
  39.     public function setLastname(string $lastname): self
  40.     {
  41.         $this->lastname = $lastname;
  42.         return $this;
  43.     }
  44.     public function getFirstname(): ?string
  45.     {
  46.         return $this->firstname;
  47.     }
  48.     public function setFirstname(string $firstname): self
  49.     {
  50.         $this->firstname = $firstname;
  51.         return $this;
  52.     }
  53.     public function getTelephone(): ?string
  54.     {
  55.         return $this->telephone;
  56.     }
  57.     public function setTelephone(string $telephone): self
  58.     {
  59.         $this->telephone = $telephone;
  60.         return $this;
  61.     }
  62.     public function getEmail(): ?string
  63.     {
  64.         return $this->email;
  65.     }
  66.     public function setEmail(string $email): self
  67.     {
  68.         $this->email = $email;
  69.         return $this;
  70.     }
  71.     public function getPostalCode(): ?string
  72.     {
  73.         return $this->postalCode;
  74.     }
  75.     public function setPostalCode(string $postalCode): self
  76.     {
  77.         $this->postalCode = $postalCode;
  78.         return $this;
  79.     }
  80.     public function getSociety(): ?string
  81.     {
  82.         return $this->society;
  83.     }
  84.     public function setSociety(string $society): self
  85.     {
  86.         $this->society = $society;
  87.         return $this;
  88.     }
  89.     public function getMessage(): ?string
  90.     {
  91.         return $this->message;
  92.     }
  93.     public function setMessage(string $message): self
  94.     {
  95.         $this->message = $message;
  96.         return $this;
  97.     }
  98.     public function getPole(): ?Pole
  99.     {
  100.         return $this->pole;
  101.     }
  102.     public function setPole(?Pole $pole): self
  103.     {
  104.         $this->pole = $pole;
  105.         return $this;
  106.     }
  107.     public function isLegalTerms(): ?bool
  108.     {
  109.         return $this->legalTerms;
  110.     }
  111.     public function setLegalTerms(bool $legalTerms): self
  112.     {
  113.         $this->legalTerms = $legalTerms;
  114.         return $this;
  115.     }
  116. }