clients/oathkeeper/php/lib/Api/ApiApi.php
/**
     * Operation listRulesAsyncWithHttpInfo
     *
     * List all rules
     *
     * @param  int $limit The maximum amount of rules returned. (optional)
     * @param  int $offset The offset from where to start looking. (optional)
     *
     * @throws \InvalidArgumentException
     * @return \GuzzleHttp\Promise\PromiseInterface
     */
Operation listRulesAsyncWithHttpInfo
List all rules

@param  int $limit The maximum amount of rules returned. (optional)
@param  int $offset The offset from where to start looking. (optional)


Operation listRulesAsyncWithHttpInfo List all rules @param int $limit The maximum amount of rules returned . ( optional ) @param int $offset The offset from where to start looking . ( optional )
public function listRulesAsyncWithHttpInfo($limit = null, $offset = null)
    {
        $returnType = '\Ory\Oathkeeper\Client\Model\Rule[]';
        $request = $this->listRulesRequest($limit, $offset);
        return $this->client
            ->sendAsync($request, $this->createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    $responseBody = $response->getBody();
                    if ($returnType === '\SplFileObject') {
                        $content = $responseBody; 
                    } else {
                        $content = (string) $responseBody;
                    }
                    return [
                        ObjectSerializer::deserialize($content, $returnType, []),
                        $response->getStatusCode(),
                        $response->getHeaders()
                    ];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
public function listRulesAsyncWithHttpInfo ( $ limit = null , $ offset = null ) { $ returnType = '\Ory\Oathkeeper\Client\Model\Rule[]' ; $ request = $ this -> listRulesRequest ( $ limit , $ offset ) ; return $ this -> client -> sendAsync ( $ request , $ this -> createHttpClientOption ( ) ) -> then ( function ( $ response ) use ( $ returnType ) { $ responseBody = $ response -> getBody ( ) ; if ( $ returnType === '\SplFileObject' ) { $ content = $ responseBody ; } else { $ content = ( string ) $ responseBody ; } return [ ObjectSerializer :: deserialize ( $ content , $ returnType , [ ] ) , $ response -> getStatusCode ( ) , $ response -> getHeaders ( ) ] ; } , function ( $ exception ) { $ response = $ exception -> getResponse ( ) ; $ statusCode = $ response -> getStatusCode ( ) ; throw new ApiException ( sprintf ( '[%d] Error connecting to the API (%s)' , $ statusCode , $ exception -> getRequest ( ) -> getUri ( ) ) , $ statusCode , $ response -> getHeaders ( ) , $ response -> getBody ( ) ) ; } ) ; }
Operation listRulesAsyncWithHttpInfo
 List all rules
Operation listRulesAsyncWithHttpInfo List all rules
//stream goes to serializer