/** * @param $id * @return null|User */ public function getUserById($id) { $result = $this->database->fetchRow("SELECT * FROM users WHERE id = :id", array("id" => $id)); return $this->userParser($result); }