InflectorInterface
in
Table of Contents
- 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.
- setProperties() : self
- Defines multiple properties to be set on the subject object.
- setProperty() : self
- Defines a property to be set on the subject object.
Methods
getType()
Get the type.
public
getType() : string
Return values
string —inflect()
Apply inflections to an object.
public
inflect(object $object) : void
Parameters
- $object : object
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 —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