id; } public function getPostTitle(): string { return $this->postTitle; } /** * We don't use typehint for now because doctrine cache generator would fail as it doesn't know the class. * @return \WP_Post|null */ public function getWpPostInstance() { $post = \WP_Post::get_instance($this->id); return $post ?: null; } }