timestamp = $timestamp; $this->author = $author; } /** * @inheritDoc */ public function getAuthor(): string { return $this->author; } /** * @inheritDoc */ public function getTimestamp(): DateTimeImmutable { return new DateTimeImmutable( $this->timestamp ); } /** * @inheritDoc CommentItemTrait::getHeading * @suppress PhanTypeMismatchReturnSuperType */ public function getHeading(): DatabaseHeadingItem { return $this->traitGetHeading(); } /** * @inheritDoc CommentItemTrait::getSubscribableHeading */ public function getSubscribableHeading(): ?DatabaseHeadingItem { return $this->traitGetSubscribableHeading(); } }