WooCommerce Code Reference

Inflector
in package
implements ArgumentResolverInterface, InflectorInterface Uses ArgumentResolverTrait, ContainerAwareTrait

Interfaces, Classes and Traits

ArgumentResolverInterface
InflectorInterface

Table of Contents

$callback  : callable|null
$container  : ContainerInterface
$leagueContainer  : Container
$methods  : array<string|int, mixed>
$properties  : array<string|int, mixed>
$type  : string
__construct()  : mixed
Construct.
getContainer()  : ContainerInterface
Get the container.
getLeagueContainer()  : Container
Get the container.
getType()  : string
Get the type.
inflect()  : void
Apply inflections to an object.
invokeMethod()  : self
Defines a method to be invoked on the subject object.
invokeMethods()  : self
Defines multiple methods to be invoked on the subject object.
reflectArguments()  : array<string|int, mixed>
{@inheritdoc}
resolveArguments()  : array<string|int, mixed>
{@inheritdoc}
setContainer()  : ContainerAwareInterface
Set a container.
setLeagueContainer()  : self
Set a container.
setProperties()  : self
Defines multiple properties to be set on the subject object.
setProperty()  : self
Defines a property to be set on the subject object.

Properties

Methods

invokeMethod()

Defines a method to be invoked on the subject object.

public invokeMethod(string $name, array<string|int, mixed> $args) : self
Parameters
$name : string
$args : array<string|int, mixed>
Return values
self

invokeMethods()

Defines multiple methods to be invoked on the subject object.

public invokeMethods(array<string|int, mixed> $methods) : self
Parameters
$methods : 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>

setProperties()

Defines multiple properties to be set on the subject object.

public setProperties(array<string|int, mixed> $properties) : self
Parameters
$properties : array<string|int, mixed>
Return values
self