src/Entity/Contact.php line 9
<?phpnamespace App\Entity;use App\Repository\ContactRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ContactRepository::class)]class Contact{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'string', length: 255)]private $lastname;#[ORM\Column(type: 'string', length: 255)]private $firstname;#[ORM\Column(type: 'string', length: 255)]private $telephone;#[ORM\Column(type: 'string', length: 255)]private $email;#[ORM\Column(type: 'string', length: 255)]private $postalCode;#[ORM\Column(type: 'string', length: 255)]private $society;#[ORM\Column(type: 'string', length: 255)]private $message;#[ORM\ManyToOne(targetEntity: Pole::class)]#[ORM\JoinColumn(nullable: false)]private $pole;#[ORM\Column(type: 'boolean')]private $legalTerms;public function getId(): ?int{return $this->id;}public function getLastname(): ?string{return $this->lastname;}public function setLastname(string $lastname): self{$this->lastname = $lastname;return $this;}public function getFirstname(): ?string{return $this->firstname;}public function setFirstname(string $firstname): self{$this->firstname = $firstname;return $this;}public function getTelephone(): ?string{return $this->telephone;}public function setTelephone(string $telephone): self{$this->telephone = $telephone;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(string $email): self{$this->email = $email;return $this;}public function getPostalCode(): ?string{return $this->postalCode;}public function setPostalCode(string $postalCode): self{$this->postalCode = $postalCode;return $this;}public function getSociety(): ?string{return $this->society;}public function setSociety(string $society): self{$this->society = $society;return $this;}public function getMessage(): ?string{return $this->message;}public function setMessage(string $message): self{$this->message = $message;return $this;}public function getPole(): ?Pole{return $this->pole;}public function setPole(?Pole $pole): self{$this->pole = $pole;return $this;}public function isLegalTerms(): ?bool{return $this->legalTerms;}public function setLegalTerms(bool $legalTerms): self{$this->legalTerms = $legalTerms;return $this;}}