public abstract function insertLanguage(Language $language);
/** * Inserts the given $language * * @param Language $language * * @return int ID of the new language */ public function insertLanguage(Language $language) { try { return $this->innerGateway->insertLanguage($language); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }