<?phpnamespace App\Entity\GroupTicket;use App\Entity\Abstract\Entity;use App\Repository\GroupTicket\ContactInformationRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ContactInformationRepository::class)]#[ORM\Table(name: 'group_tickets_contact_information')]class ContactInformation extends Entity{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $name = null; #[ORM\Column(length: 255, nullable: true)] private ?string $email = null; #[ORM\Column(length: 32, nullable: true)] private ?string $phone = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $adress = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $remark = null; #[ORM\OneToOne(mappedBy: 'contactInformation')] private ?School $school = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(?string $name): static { $this->name = $name; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): static { $this->email = $email; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): static { $this->phone = $phone; return $this; } public function getAdress(): ?string { return $this->adress; } public function setAdress(?string $adress): static { $this->adress = $adress; return $this; } public function getRemark(): ?string { return $this->remark; } public function setRemark(?string $remark): static { $this->remark = $remark; return $this; } public function getSchool(): ?School { return $this->school; } public function setSchool(?School $school): static { // unset the owning side of the relation if necessary if ($school === null && $this->school !== null) { $this->school->setContactInformation(null); } // set the owning side of the relation if necessary if ($school !== null && $school->getContactInformation() !== $this) { $school->setContactInformation($this); } $this->school = $school; return $this; }}