public function getPermission($code)
    {
        if (!isset($this->permissions[$code])) {
            throw new Exceptions\PermissionNotDefinedException($this, $code);
        }

        return $this->permissions[$code];
    }
public function getPermission($code)
    {
        if (!isset($this->permissions[$code])) {
            throw new Exceptions\PermissionNotDefinedException($this, $code);
        }

        return $this->permissions[$code];
    }
public function getPermission ( $ code ) { if ( ! isset ( $ this -> permissions [ $ code ] ) ) { throw new Exceptions \ PermissionNotDefinedException ( $ this , $ code ) ; } return $ this -> permissions [ $ code ] ; }
Retrieve a permission name given code.

@param string $code

@return string
Retrieve a permission name given code .