DefinitionAggregateInterface
extends
ContainerAwareInterface, IteratorAggregate
in
Table of Contents
- add() : DefinitionInterface
- Add a definition to the aggregate.
- getContainer() : ContainerInterface
- Get the container
- getDefinition() : DefinitionInterface
- Get the definition to be extended.
- getLeagueContainer() : Container
- Get the container. This will be removed in favour of getContainer returning Container in next major release.
- 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() : self
- Set a container
- setLeagueContainer() : self
- Set a container. This will be removed in favour of setContainer receiving Container in next major release.
Methods
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 —getLeagueContainer()
Get the container. This will be removed in favour of getContainer returning Container in next major release.
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) : self
Parameters
- $container : ContainerInterface
Return values
self —setLeagueContainer()
Set a container. This will be removed in favour of setContainer receiving Container in next major release.
public
setLeagueContainer(Container $container) : self
Parameters
- $container : Container