ReflectionContainer
in package
implements
ArgumentResolverInterface, ContainerInterface
Uses
ArgumentResolverTrait, ContainerAwareTrait
Interfaces, Classes and Traits
- ArgumentResolverInterface
- ContainerInterface
- Describes the interface of a container that exposes methods to read its entries.
Table of Contents
- $cache : array<string|int, mixed>
- Cache of resolutions.
- $cacheResolutions : bool
- $container : ContainerInterface
- $leagueContainer : Container
- cacheResolutions() : self
- Whether the container should default to caching resolutions and returning the cache on following calls.
- call() : mixed
- Invoke a callable via the container.
- get() : mixed
- Finds an entry of the container by its identifier and returns it.
- getContainer() : ContainerInterface
- Get the container.
- getLeagueContainer() : Container
- Get the container.
- has() : bool
- Returns true if the container can return an entry for the given identifier.
- reflectArguments() : array<string|int, mixed>
- {@inheritdoc}
- resolveArguments() : array<string|int, mixed>
- {@inheritdoc}
- setContainer() : ContainerAwareInterface
- Set a container.
- setLeagueContainer() : self
- Set a container.
Properties
$cache
Cache of resolutions.
protected
array<string|int, mixed>
$cache
= []
$cacheResolutions
protected
bool
$cacheResolutions
= false
$container
protected
ContainerInterface
$container
$leagueContainer
protected
Container
$leagueContainer
Methods
cacheResolutions()
Whether the container should default to caching resolutions and returning the cache on following calls.
public
cacheResolutions([bool $option = true ]) : self
Parameters
- $option : bool = true
Return values
self —call()
Invoke a callable via the container.
public
call(callable $callable[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $callable : callable
- $args : array<string|int, mixed> = []
Tags
Return values
mixed —get()
Finds an entry of the container by its identifier and returns it.
public
get(mixed $id[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $id : mixed
-
Identifier of the entry to look for.
- $args : array<string|int, mixed> = []
Tags
Return values
mixed — Entry.getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —has()
Returns true if the container can return an entry for the given identifier.
public
has(mixed $id) : bool
Parameters
- $id : mixed
-
Identifier of the entry to look for.
Return values
bool —reflectArguments()
{@inheritdoc}
public
reflectArguments(ReflectionFunctionAbstract $method[, array<string|int, mixed> $args = [] ]) : array<string|int, mixed>
Parameters
- $method : ReflectionFunctionAbstract
- $args : array<string|int, mixed> = []
Return values
array<string|int, mixed> —resolveArguments()
{@inheritdoc}
public
resolveArguments(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
Return values
array<string|int, 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