public abstract function createRole(Role $role);
/** * Create new role. * * @param Role $role * * @return Role */ public function createRole(Role $role) { try { return $this->innerGateway->createRole($role); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }