<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity */class Contact{ public const CIVILITY_MR = 'MR'; public const CIVILITY_MRS = 'MRS'; /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * * @var int */ protected $id; /** * @ORM\Column(type="string") * * @var string */ protected $firstName; /** * @ORM\Column(type="string") * * @var string */ protected $lastName; /** * @ORM\Column(type="string") * * @var string */ protected $civility; /** * @ORM\Column(type="string") * * @var string */ protected $email; /** * @ORM\Column(type="string", nullable=true) * * @var string */ protected $organization = ''; /** * @ORM\Column(type="string", nullable=true) * * @var string */ protected $job = ''; /** * @ORM\Column(type="string", nullable=true) * * @var string */ protected $phone = ''; /** * @ORM\Column(type="string", nullable=true) * * @var string */ protected $cellPhone = ''; /** * @ORM\Column(type="string") * * @var string */ protected $address = ''; /** * @ORM\Column(type="string") * * @var string */ protected $zipCode = ''; /** * @ORM\Column(type="string") * * @var string */ protected $city = ''; /** * @ORM\Column(type="json") * * @var array */ protected $contractNumbers = []; public function getId(): int { return $this->id; } /** * @return Contact */ public function setId(int $id): self { $this->id = $id; return $this; } public function getFirstName(): ?string { return $this->firstName; } /** * @return Contact */ public function setFirstName(string $firstName): self { $this->firstName = $firstName; return $this; } public function getLastName(): ?string { return $this->lastName; } /** * @return Contact */ public function setLastName(string $lastName): self { $this->lastName = $lastName; return $this; } public function getOrganization(): ?string { return $this->organization; } /** * @param string $organization * * @return Contact */ public function setOrganization(?string $organization): self { $this->organization = $organization; return $this; } public function getJob(): ?string { return $this->job; } /** * @param string $job * * @return Contact */ public function setJob(?string $job): self { $this->job = $job; return $this; } public function getPhone(): ?string { return $this->phone; } /** * @param string $phone * * @return Contact */ public function setPhone(?string $phone): self { $this->phone = $phone; return $this; } public function getCellPhone(): ?string { return $this->cellPhone; } /** * @param string $cellPhone * * @return Contact */ public function setCellPhone(?string $cellPhone): self { $this->cellPhone = $cellPhone; return $this; } public function getAddress(): ?string { return $this->address; } /** * @return Contact */ public function setAddress(string $address): self { $this->address = $address; return $this; } public function getZipCode(): ?string { return $this->zipCode; } /** * @return Contact */ public function setZipCode(string $zipCode): self { $this->zipCode = $zipCode; return $this; } public function getCity(): ?string { return $this->city; } /** * @return Contact */ public function setCity(string $city): self { $this->city = $city; return $this; } public function getContractNumbers(): array { return $this->contractNumbers; } /** * @return Contact */ public function setContractNumbers(array $contractNumbers): self { $this->contractNumbers = $contractNumbers; return $this; } public function setCivility(?string $civility): self { $this->civility = $civility; return $this; } public function getCivility(): ?string { return $this->civility; } public function getEmail(): ?string { return $this->email; } public function setEmail(string $email): self { $this->email = $email; return $this; }}