You are here

public function AttributeBag::getIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator()

Returns an iterator for attributes.

Return value

\ArrayIterator An \ArrayIterator instance

File

vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php, line 143

Class

AttributeBag
This class relates to session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

public function getIterator() {
  return new \ArrayIterator($this->attributes);
}