src/Collection/Iterator/ArrayQueueIterator.php
public function current()
    {
        if (!$this->valid()) {
            return null;
        }

        $index = $this->index;
        $front = $this->front;
        $cap = $this->cap;
        $offset = ($index + $front) % $cap;

        return $this->items[$offset];
    }
public function current()
    {
        if (!$this->valid()) {
            return null;
        }

        $index = $this->index;
        $front = $this->front;
        $cap = $this->cap;
        $offset = ($index + $front) % $cap;

        return $this->items[$offset];
    }
public function current ( ) { if ( ! $ this -> valid ( ) ) { return null ; } $ index = $ this -> index ; $ front = $ this -> front ; $ cap = $ this -> cap ; $ offset = ( $ index + $ front ) % $ cap ; return $ this -> items [ $ offset ] ; }
Retrieves the current item

@return mixed
Retrieves the current item