src/Page.php
private function getItemsWithOneExtra()
    {
        if (null === $this->itemsWithOneExtra) {
            $this->itemsWithOneExtra = $this
                ->adapter
                ->getItems($this->getOffset(), $this->getLength() + 1)
            ;
        }

        return $this->itemsWithOneExtra;
    }
private function getItemsWithOneExtra()
    {
        if (null === $this->itemsWithOneExtra) {
            $this->itemsWithOneExtra = $this
                ->adapter
                ->getItems($this->getOffset(), $this->getLength() + 1)
            ;
        }

        return $this->itemsWithOneExtra;
    }
private function getItemsWithOneExtra ( ) { if ( null === $ this -> itemsWithOneExtra ) { $ this -> itemsWithOneExtra = $ this -> adapter -> getItems ( $ this -> getOffset ( ) , $ this -> getLength ( ) + 1 ) ; } return $ this -> itemsWithOneExtra ; }
Gets items of this page as well as the 1-st item from the next page.
Doing it this way keeps us from having to run the expensive total item
count query in some scenarios.

@return array
Gets items of this page as well as the 1 - st item from the next page . Doing it this way keeps us from having to run the expensive total item count query in some scenarios .