src/V2/Pagination/PaginatedEndpoint.php
public function all() {
        $size = $this->maxPageSize();

        $firstPageResponse = $this->request( $this->createPaginatedRequestQuery( 0, $size ) );
        $header_values = $firstPageResponse->getResponse()->getHeader('X-Result-Total');
        $total = array_shift($header_values);

        $result = $firstPageResponse->json();

        if( $total <= $size ) {
            return $result;
        }

        $requests = [];
        for( $page = 1; $page < ceil( $total / $size ); $page++ ) {
            $requests[] = $this->createPaginatedRequestQuery( $page, $size );
        }

        $responses = $this->requestMany( $requests );

        foreach( $responses as $response ) {
            $result = array_merge( $result, $response->json() );
        }

        return $result;
    }
public function all() {
        $size = $this->maxPageSize();

        $firstPageResponse = $this->request( $this->createPaginatedRequestQuery( 0, $size ) );
        $header_values = $firstPageResponse->getResponse()->getHeader('X-Result-Total');
        $total = array_shift($header_values);

        $result = $firstPageResponse->json();

        if( $total <= $size ) {
            return $result;
        }

        $requests = [];
        for( $page = 1; $page < ceil( $total / $size ); $page++ ) {
            $requests[] = $this->createPaginatedRequestQuery( $page, $size );
        }

        $responses = $this->requestMany( $requests );

        foreach( $responses as $response ) {
            $result = array_merge( $result, $response->json() );
        }

        return $result;
    }
public function all ( ) { $ size = $ this -> maxPageSize ( ) ; $ firstPageResponse = $ this -> request ( $ this -> createPaginatedRequestQuery ( 0 , $ size ) ) ; $ header_values = $ firstPageResponse -> getResponse ( ) -> getHeader ( 'X-Result-Total' ) ; $ total = array_shift ( $ header_values ) ; $ result = $ firstPageResponse -> json ( ) ; if ( $ total <= $ size ) { return $ result ; } $ requests = [ ] ; for ( $ page = 1 ; $ page < ceil ( $ total / $ size ) ; $ page ++ ) { $ requests [ ] = $ this -> createPaginatedRequestQuery ( $ page , $ size ) ; } $ responses = $ this -> requestMany ( $ requests ) ; foreach ( $ responses as $ response ) { $ result = array_merge ( $ result , $ response -> json ( ) ) ; } return $ result ; }
All entries.

@return array
All entries .