src/Zicht/Itertools/lib/Traits/ItemsTrait.php
public function items()
    {
        $items = [];
        if ($this instanceof \Traversable) {
            foreach ($this as $key => $value) {
                $items [] = new KeyValuePair($key, $value instanceof FiniteIterableInterface ? $value->items() : $value);
            }
        }
        return $items;
    }
public function items()
    {
        $items = [];
        if ($this instanceof \Traversable) {
            foreach ($this as $key => $value) {
                $items [] = new KeyValuePair($key, $value instanceof FiniteIterableInterface ? $value->items() : $value);
            }
        }
        return $items;
    }
Returns an array with items, i.e. [$key, $value] pairs, from this iterator

@return array