src/Manager.php
public function getRole($name)
    {
        if ($this->hasRole($name)) {
            return $this->roles[$name];
        }

        throw new \InvalidArgumentException(sprintf('No role with name "%s" could be found', $name));
    }
public function getRole($name)
    {
        if ($this->hasRole($name)) {
            return $this->roles[$name];
        }

        throw new \InvalidArgumentException(sprintf('No role with name "%s" could be found', $name));
    }
public function getRole ( $ name ) { if ( $ this -> hasRole ( $ name ) ) { return $ this -> roles [ $ name ] ; } throw new \ InvalidArgumentException ( sprintf ( 'No role with name "%s" could be found' , $ name ) ) ; }
Returns the named role from the RBAC system.

@param string $name
@return RoleInterface
Returns the named role from the RBAC system .