gielfeldt/iterators

View on GitHub
src/KeysIterator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Gielfeldt\Iterators;

class KeysIterator extends TraversableIterator
{
    public function key()
    {
        return $this->getIndex();
    }

    public function current()
    {
        return parent::key();
    }
}