src/Client.php
public function getRole($role)
    {
        $params = [
            'role' => $role,
        ];

        $body = $this->request(self::URI_AUTH_ROLE_GET, $params);
        $body = $this->decodeBodyForFields(
            $body,
            'perm',
            ['key', 'range_end',]
        );
        if ($this->pretty && isset($body['perm'])) {
            return $body['perm'];
        }

        return $body;
    }
public function getRole($role)
    {
        $params = [
            'role' => $role,
        ];

        $body = $this->request(self::URI_AUTH_ROLE_GET, $params);
        $body = $this->decodeBodyForFields(
            $body,
            'perm',
            ['key', 'range_end',]
        );
        if ($this->pretty && isset($body['perm'])) {
            return $body['perm'];
        }

        return $body;
    }
public function getRole ( $ role ) { $ params = [ 'role' => $ role , ] ; $ body = $ this -> request ( self :: URI_AUTH_ROLE_GET , $ params ) ; $ body = $ this -> decodeBodyForFields ( $ body , 'perm' , [ 'key' , 'range_end' , ] ) ; if ( $ this -> pretty && isset ( $ body [ 'perm' ] ) ) { return $ body [ 'perm' ] ; } return $ body ; }
get detailed role information.

@param  string $role
@return array
@throws \GuzzleHttp\Exception\BadResponseException
get detailed role information .