InflectorAggregate
in package
implements
InflectorAggregateInterface
Uses
ContainerAwareTrait
Interfaces, Classes and Traits
Table of Contents
- $container : ContainerInterface
- $inflectors : array<string|int, Inflector>
- $leagueContainer : Container
- add() : Inflector
- Add an inflector to the aggregate.
- getContainer() : ContainerInterface
- Get the container.
- getIterator() : Generator
- {@inheritdoc}
- getLeagueContainer() : Container
- Get the container.
- inflect() : object
- Applies all inflectors to an object.
- setContainer() : ContainerAwareInterface
- Set a container.
- setLeagueContainer() : self
- Set a container.
Properties
$container
protected
ContainerInterface
$container
$inflectors
protected
array<string|int, Inflector>
$inflectors
= []
$leagueContainer
protected
Container
$leagueContainer
Methods
add()
Add an inflector to the aggregate.
public
add(string $type[, callable $callback = null ]) : Inflector
Parameters
- $type : string
- $callback : callable = null
Return values
Inflector —getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getIterator()
{@inheritdoc}
public
getIterator() : Generator
Return values
Generator —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —inflect()
Applies all inflectors to an object.
public
inflect(mixed $object) : object
Parameters
- $object : mixed
Return values
object —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