Inflector
in package
implements
ArgumentResolverInterface, InflectorInterface
Uses
ArgumentResolverTrait, ContainerAwareTrait
Interfaces, Classes and Traits
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
$callback
protected
callable|null
$callback
$container
protected
ContainerInterface
$container
$leagueContainer
protected
Container
$leagueContainer
$methods
protected
array<string|int, mixed>
$methods
= []
$properties
protected
array<string|int, mixed>
$properties
= []
$type
protected
string
$type
Methods
__construct()
Construct.
public
__construct(string $type[, callable|null $callback = null ]) : mixed
Parameters
- $type : string
- $callback : callable|null = null
Return values
mixed —getContainer()
Get the container.
public
getContainer() : ContainerInterface
Return values
ContainerInterface —getLeagueContainer()
Get the container.
public
getLeagueContainer() : Container
Return values
Container —getType()
Get the type.
public
getType() : string
Return values
string —inflect()
Apply inflections to an object.
public
inflect(mixed $object) : void
Parameters
- $object : mixed
Return values
void —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> —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
Return values
self —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 —setProperty()
Defines a property to be set on the subject object.
public
setProperty(string $property, mixed $value) : self
Parameters
- $property : string
- $value : mixed