src/Permission.php
public function getRule($name)
    {
        if ($this->hasRule($name)) {
            return $this->rules[$name];
        }

        throw new \InvalidArgumentException(sprintf('No rule with name "%s" could be found', $name));
    }
public function getRule($name)
    {
        if ($this->hasRule($name)) {
            return $this->rules[$name];
        }

        throw new \InvalidArgumentException(sprintf('No rule with name "%s" could be found', $name));
    }
public function getRule ( $ name ) { if ( $ this -> hasRule ( $ name ) ) { return $ this -> rules [ $ name ] ; } throw new \ InvalidArgumentException ( sprintf ( 'No rule with name "%s" could be found' , $ name ) ) ; }
Returns the named rule from the Permission.

@param string $name
@return RuleInterface
Returns the named rule from the Permission .