src/Client.php
public function getPageCount() : int
    {
        if($this->lastResponse && $this->lastResponse->getHeaderLine('X-Total-Pages')) {
            return (int)$this->lastResponse->getHeaderLine('X-Total-Pages');
        }

        return 0;
    }
public function getPageCount() : int
    {
        if($this->lastResponse && $this->lastResponse->getHeaderLine('X-Total-Pages')) {
            return (int)$this->lastResponse->getHeaderLine('X-Total-Pages');
        }

        return 0;
    }
public function getPageCount ( ) : int { if ( $ this -> lastResponse && $ this -> lastResponse -> getHeaderLine ( 'X-Total-Pages' ) ) { return ( int ) $ this -> lastResponse -> getHeaderLine ( 'X-Total-Pages' ) ; } return 0 ; }
Returns the number of pages in the collection
Returns 0 if the header isn't set

@return int
Returns the number of pages in the collection Returns 0 if the header isn t set