public function getPageById(int $pageId) : array { $page = $this->db->row("SELECT\n *\n FROM\n airship_custom_page\n WHERE\n pageid = ?\n ", $pageId); if (empty($page)) { throw new CustomPageNotFoundException(); } return $page; }