protected function checkForMorePages(): void
    {
        $this->hasMore = \count($this->items) > $this->itemCountPerPage;

        $this->items = $this->items->slice(0, $this->itemCountPerPage);
    }
protected function checkForMorePages(): void
    {
        $this->hasMore = \count($this->items) > $this->itemCountPerPage;

        $this->items = $this->items->slice(0, $this->itemCountPerPage);
    }
protected function checkForMorePages ( ) : void { $ this -> hasMore = \ count ( $ this -> items ) > $ this -> itemCountPerPage ; $ this -> items = $ this -> items -> slice ( 0 , $ this -> itemCountPerPage ) ; }
Check for more pages. The last item will be sliced off.

@return void
Check for more pages . The last item will be sliced off .