WooCommerce Code Reference

Definition
in package
implements ArgumentResolverInterface, DefinitionInterface Uses ArgumentResolverTrait, ContainerAwareTrait

Interfaces, Classes and Traits

ArgumentResolverInterface
DefinitionInterface

Table of Contents

$alias  : string
$arguments  : array<string|int, mixed>
$concrete  : mixed
$container  : ContainerInterface
$leagueContainer  : Container
$methods  : array<string|int, mixed>
$resolved  : mixed
$shared  : bool
$tags  : array<string|int, mixed>
__construct()  : mixed
Constructor.
addArgument()  : self
Add an argument to be injected.
addArguments()  : self
Add multiple arguments to be injected.
addMethodCall()  : self
Add a method to be invoked
addMethodCalls()  : self
Add multiple methods to be invoked
addTag()  : self
Add a tag to the definition.
getAlias()  : string
Get the alias of the definition.
getConcrete()  : mixed
Get the concrete of the definition.
getContainer()  : ContainerInterface
Get the container.
getLeagueContainer()  : Container
Get the container.
hasTag()  : bool
Does the definition have a tag?
isShared()  : bool
Is this a shared definition?
reflectArguments()  : array<string|int, mixed>
{@inheritdoc}
resolve()  : mixed
Handle instantiation and manipulation of value and return.
resolveArguments()  : array<string|int, mixed>
{@inheritdoc}
setAlias()  : DefinitionInterface
Set the alias of the definition.
setConcrete()  : DefinitionInterface
Set the concrete of the definition.
setContainer()  : ContainerAwareInterface
Set a container.
setLeagueContainer()  : self
Set a container.
setShared()  : self
Set whether this is a shared definition.
invokeMethods()  : object
Invoke methods on resolved instance.
resolveCallable()  : mixed
Resolve a callable.
resolveClass()  : object
Resolve a class.

Properties

Methods

addMethodCall()

Add a method to be invoked

public addMethodCall(string $method[, array<string|int, mixed> $args = [] ]) : self
Parameters
$method : string
$args : array<string|int, mixed> = []
Return values
self

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>