src/MultiTierArchitecture/Library/Pagination/Limit.php
public function getItems()
    {
        if (count($this->items) > $this->itemsPerPage) {
            $items = [];
            $counter = 0;
            foreach ($this->items as $key => $value) {
                $items[$key] = $value;
                $counter++;
                if ($counter == $this->itemsPerPage) {
                    return $items;
                }
            }
        }

        return $this->items;
    }
public function getItems()
    {
        if (count($this->items) > $this->itemsPerPage) {
            $items = [];
            $counter = 0;
            foreach ($this->items as $key => $value) {
                $items[$key] = $value;
                $counter++;
                if ($counter == $this->itemsPerPage) {
                    return $items;
                }
            }
        }

        return $this->items;
    }
public function getItems ( ) { if ( count ( $ this -> items ) > $ this -> itemsPerPage ) { $ items = [ ] ; $ counter = 0 ; foreach ( $ this -> items as $ key => $ value ) { $ items [ $ key ] = $ value ; $ counter ++ ; if ( $ counter == $ this -> itemsPerPage ) { return $ items ; } } } return $ this -> items ; }
Get all the items that are set for this pagination

@return array|null
Get all the items that are set for this pagination