InflectorAggregateInterface
extends
ContainerAwareInterface, IteratorAggregate
in
Table of Contents
- add() : Inflector
- Add an inflector to the aggregate.
- getContainer() : ContainerInterface
- Get the container
- getLeagueContainer() : Container
- Get the container. This will be removed in favour of getContainer returning Container in next major release.
- inflect() : object
- Applies all inflectors to an object.
- 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 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 —getLeagueContainer()
Get the container. This will be removed in favour of getContainer returning Container in next major release.
public
getLeagueContainer() : Container
Return values
Container —inflect()
Applies all inflectors to an object.
public
inflect(object $object) : object
Parameters
- $object : object
Return values
object —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