class service_collection_iterator extends ArrayIterator

Iterator which loads the services when they are requested

Properties

protected service_collection $collection

Methods

__construct(service_collection $collection, int $flags = 0)

Construct an ArrayIterator for service_collection

current()

{@inheritdoc}

Details

at line 33
__construct(service_collection $collection, int $flags = 0)

Construct an ArrayIterator for service_collection

Parameters

service_collection $collection

The collection to iterate over

int $flags

Flags to control the behaviour of the ArrayObject object.

See also

\phpbb\di\ArrayObject::setFlags()

at line 42
current()

{@inheritdoc}