WooCommerce Code Reference

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

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
throws
ReflectionException
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
throws
ReflectionException
Return values
mixedEntry.

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>