yii\web\HeaderCollection::getIterator PHP 메소드

getIterator() 공개 메소드

This method is required by the SPL interface [[\IteratorAggregate]]. It will be implicitly called when you use foreach to traverse the collection.
public getIterator ( ) : ArrayIterator
리턴 ArrayIterator an iterator for traversing the headers in the collection.
    public function getIterator()
    {
        return new ArrayIterator($this->_headers);
    }