/** * Get all posts * * @param integer $max * total posts to show * @return array<Post> */ public function getPosts($max = self::TOTAL_POSTS_TO_SHOW) { $moreQuerySettings['author'] = $this->ID; return HomeController::getPosts(Post::TYPE_POST, $max, [], false, $moreQuerySettings); }