Documentation

TaggedIteratorArgument extends IteratorArgument
in package

Represents a collection of services found by tag name to lazily iterate over.

Tags
author

Roland Franssen franssen.roland@gmail.com

Table of Contents

$defaultIndexMethod  : mixed
$defaultPriorityMethod  : mixed
$indexAttribute  : mixed
$needsIndexes  : mixed
$tag  : mixed
$values  : mixed
__construct()  : mixed
getDefaultIndexMethod()  : string|null
getDefaultPriorityMethod()  : string|null
getIndexAttribute()  : string|null
getTag()  : mixed
getValues()  : array<string|int, Reference>
needsIndexes()  : bool
setValues()  : mixed

Properties

Methods

__construct()

public __construct(string $tag[, string|null $indexAttribute = null ][, string|null $defaultIndexMethod = null ][, bool $needsIndexes = false ][, string|null $defaultPriorityMethod = null ]) : mixed
Parameters
$tag : string

The name of the tag identifying the target services

$indexAttribute : string|null = null

The name of the attribute that defines the key referencing each service in the tagged collection

$defaultIndexMethod : string|null = null

The static method that should be called to get each service's key when their tag doesn't define the previous attribute

$needsIndexes : bool = false

Whether indexes are required and should be generated when computing the map

$defaultPriorityMethod : string|null = null

The static method that should be called to get each service's priority when their tag doesn't define the "priority" attribute

Return values
mixed

getDefaultIndexMethod()

public getDefaultIndexMethod() : string|null
Return values
string|null

getDefaultPriorityMethod()

public getDefaultPriorityMethod() : string|null
Return values
string|null

Search results