Fr3nch13/CakePHP Utilities

Inflector
in package
implements ArgumentResolverInterface, InflectorInterface uses ArgumentResolverTrait, ContainerAwareTrait

Table of Contents

Interfaces

ArgumentResolverInterface
InflectorInterface

Properties

$callback  : callable|null
$container  : DefinitionContainerInterface|null
$methods  : array<string|int, mixed>
$properties  : array<string|int, mixed>
$type  : string

Methods

__construct()  : mixed
getContainer()  : DefinitionContainerInterface
getType()  : string
inflect()  : void
invokeMethod()  : InflectorInterface
invokeMethods()  : InflectorInterface
reflectArguments()  : array<string|int, mixed>
resolveArguments()  : array<string|int, mixed>
setContainer()  : ContainerAwareInterface
setProperties()  : InflectorInterface
setProperty()  : InflectorInterface

Properties

$methods

protected array<string|int, mixed> $methods = []

$properties

protected array<string|int, mixed> $properties = []

Methods

__construct()

public __construct(string $type[, callable $callback = null ]) : mixed
Parameters
$type : string
$callback : callable = null

getType()

public getType() : string
Return values
string

inflect()

public inflect(object $object) : void
Parameters
$object : object

reflectArguments()

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()

public resolveArguments(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
$arguments : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results