date = new \DateTime(); } public function getId(): int { return $this->id; } public function getPerson(): Person { return $this->person; } public function setPerson(Person $person): void { $this->person = $person; } public function getType(): string { return $this->type; } public function setType(string $type): void { $this->type = $type; } public function getPhonenumber(): string { return $this->phonenumber; } public function setPhonenumber(string $phonenumber): void { $this->phonenumber = $phonenumber; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): void { $this->description = $description; } public function getDate(): \DateTime { return $this->date; } public function setDate(\DateTime $date): void { $this->date = $date; } public function isEmpty(): bool { return empty($this->getDescription()) && empty($this->getPhonenumber()); } }