src/Manager.php
public function getPermission($name)
    {
        if ($this->hasPermission($name)) {
            return $this->permissions[$name];
        }

        throw new \InvalidArgumentException(sprintf('No permission with name "%s" could be found', $name));
    }
public function getPermission($name)
    {
        if ($this->hasPermission($name)) {
            return $this->permissions[$name];
        }

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

@param string $name
@return PermissionInterface
Returns the named permission from the RBAC system .