setDate(\time()); } public function getAuthor(): ?Author { return $this->author; } public function setAuthor(Author $author): self { $this->author = $author; return $this; } /** * @return int */ public function getDate() { return $this->dtComment; } /** * @param int $dtComment timestamp of the comment * * @return Comment */ public function setDate($dtComment) { $this->dtComment = (int) $dtComment; return $this; } /** * @return string */ public function getText() { return $this->text; } /** * @param string $text * * @return Comment */ public function setText($text = '') { $this->text = $text; return $this; } /** * Comment has not height. * * @return int|null */ public function getHeight() { return null; } /** * Set Height. * * @return $this */ public function setHeight(int $pValue = 0) { return $this; } /** * Comment has not width. * * @return int|null */ public function getWidth() { return null; } /** * Set Width. * * @return self */ public function setWidth(int $pValue = 0) { return $this; } }