id = $id; $this->title = $title; $this->content = $content; } /** * Return post id. */ public function id(): int { return $this->id; } /** * Return post title. */ public function title(): string { return $this->title; } /** * Return post content. */ public function content(): string { return $this->content; } /** * Project for reports. * * @return array{id:int,title:string} */ public function summary(): array { return array( 'id' => $this->id, 'title' => $this->title, ); } }