<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;class Contact { /** * @var int */ private $id; /** * @var string|null */ private $employeePosition; /** * @var \DateTime */ private $createdAt; /** * @var \App\Entity\Person */ private $person; /** * @var \App\Entity\Communication */ private $communication; /** * @var \App\Entity\Media */ private $contactProfilePicture; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set employeePosition. * * @param string|null $employeePosition * * @return Contact */ public function setEmployeePosition($employeePosition = null) { $this->employeePosition = $employeePosition; return $this; } /** * Get employeePosition. * * @return string|null */ public function getEmployeePosition() { return $this->employeePosition; } /** * Set createdAt. * * @param \DateTime $createdAt * * @return Contact */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt. * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set person. * * @param \App\Entity\Person|null $person * * @return Contact */ public function setPerson(\App\Entity\Person $person = null) { $this->person = $person; return $this; } /** * Get person. * * @return \App\Entity\Person|null */ public function getPerson() { return $this->person; } /** * Set communication. * * @param \App\Entity\Communication|null $communication * * @return Contact */ public function setCommunication(\App\Entity\Communication $communication = null) { $this->communication = $communication; return $this; } /** * Get communication. * * @return \App\Entity\Communication|null */ public function getCommunication() { return $this->communication; } /** * Set contactProfilePicture. * * @param \App\Entity\Media|null $contactProfilePicture * * @return Contact */ public function setContactProfilePicture(\App\Entity\Media $contactProfilePicture = null) { $this->contactProfilePicture = $contactProfilePicture; return $this; } /** * Get contactProfilePicture. * * @return \App\Entity\Media|null */ public function getContactProfilePicture() { return $this->contactProfilePicture; } public function __toString(): string { return "Contact[id=" . $this->id . ", employeePosition=" . $this->employeePosition . ", createdAt=" . $this->createdAt->format('d.m.Y H:i:s') . ", person=" . $this->person . ", communication=" . $this->communication . ", contactProfilePicture=" . $this->contactProfilePicture . "]"; }}