src/Entity/InstitutionContactPerson.php line 18
<?phpdeclare(strict_types=1);namespace App\Entity;use App\Entity\Mapped\Entity;use App\Repository\InstitutionContactPersonRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: InstitutionContactPersonRepository::class)]#[ORM\Table(name: 'institution_contact_person')]class InstitutionContactPerson extends Entity{#[ORM\Column(name: 'first_name',type: 'string',length: 191,nullable: true)]#[Assert\NotBlank(groups: ['action'])]private ?string $firstName = null;#[ORM\Column(name: 'last_name',type: 'string',length: 191,nullable: true)]#[Assert\NotBlank(groups: ['action'])]private ?string $lastName = null;#[ORM\Column(name: 'email',type: 'string',length: 191,nullable: true)]#[Assert\NotBlank(groups: ['action'])]private ?string $email = null;#[ORM\Column(name: 'person_function',type: 'string',length: 191,nullable: true)]#[Assert\NotBlank(groups: ['action'])]private ?string $personFunction = null;#[ORM\Column(name: 'contact',type: 'string',length: 191,nullable: true)]#[Assert\NotBlank(groups: ['action'])]private ?string $contact = null;#[ORM\ManyToOne(targetEntity: Institution::class,cascade: ['persist'],inversedBy: 'contactPerson')]#[ORM\JoinColumn(name: 'institution')]#[Assert\NotBlank(groups: ['action'])]private ?Institution $institution = null;public function getFirstName(): ?string{return $this->firstName;}public function setFirstName(?string $firstName): self{$this->firstName = $firstName;return $this;}public function getLastName(): ?string{return $this->lastName;}public function setLastName(?string $lastName): self{$this->lastName = $lastName;return $this;}public function getPersonFunction(): ?string{return $this->personFunction;}public function setPersonFunction(?string $personFunction): self{$this->personFunction = $personFunction;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(?string $email): self{$this->email = $email;return $this;}public function getContact(): ?string{return $this->contact;}public function setContact(?string $contact): self{$this->contact = $contact;return $this;}public function getInstitution(): ?Institution{return $this->institution;}public function setInstitution(?Institution $institution): self{$this->institution = $institution;return $this;}}