DefinitionAggregate
in package
implements
DefinitionAggregateInterface
Uses
ContainerAwareTrait
Interfaces, Classes and Traits
Table of Contents
- $container : ContainerInterface
- $definitions : array<string|int, DefinitionInterface>
- $leagueContainer : Container
- __construct() : mixed
- Construct.
- add() : DefinitionInterface
- Add a definition to the aggregate.
- getContainer() : ContainerInterface
- Get the container.
- getDefinition() : DefinitionInterface
- Get the definition to be extended.
- getIterator() : Generator
- {@inheritdoc}
- getLeagueContainer() : Container
- Get the container.
- has() : bool
- Checks whether alias exists as definition.
- hasTag() : bool
- Checks whether tag exists as definition.
- resolve() : mixed
- Resolve and build a concrete value from an id/alias.
- resolveTagged() : mixed
- Resolve and build an array of concrete values from a tag.
- setContainer() : ContainerAwareInterface
- Set a container.
- setLeagueContainer() : self
- Set a container.
Properties
$container
protected
ContainerInterface
$container
$definitions
protected
array<string|int, DefinitionInterface>
$definitions
= []
$leagueContainer
protected
Container
$leagueContainer
Methods
__construct()
Construct.
public
__construct([array<string|int, DefinitionInterface> $definitions = [] ]) : mixed
Parameters
- $definitions : array<string|int, DefinitionInterface> = []
Return values
mixed —add()
Add a definition to the aggregate.
public
add(string $id, mixed $definition[, bool $shared = false ]) : DefinitionInterface
Parameters
- $id : string
- $definition : mixed
- $shared : bool = false
Return values
DefinitionInterface —getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getDefinition()
Get the definition to be extended.
public
getDefinition(string $id) : DefinitionInterface
Parameters
- $id : string
Return values
DefinitionInterface —getIterator()
{@inheritdoc}
public
getIterator() : Generator
Return values
Generator —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —has()
Checks whether alias exists as definition.
public
has(string $id) : bool
Parameters
- $id : string
Return values
bool —hasTag()
Checks whether tag exists as definition.
public
hasTag(string $tag) : bool
Parameters
- $tag : string
Return values
bool —resolve()
Resolve and build a concrete value from an id/alias.
public
resolve(string $id[, bool $new = false ]) : mixed
Parameters
- $id : string
- $new : bool = false
Return values
mixed —resolveTagged()
Resolve and build an array of concrete values from a tag.
public
resolveTagged(string $tag[, bool $new = false ]) : mixed
Parameters
- $tag : string
- $new : bool = false
Return values
mixed —setContainer()
Set a container.
public
setContainer(ContainerInterface $container) : ContainerAwareInterface
Parameters
- $container : ContainerInterface
Return values
ContainerAwareInterface —setLeagueContainer()
Set a container.
public
setLeagueContainer(Container $container) : self
Parameters
- $container : Container