Inflector
extends Component
in package
FinalYes
Tags
Table of Contents
Properties
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- classify() : string|null
- Translates a table name to a fully qualified model class name.
- extends() : bool
- getMethodify() : string|null
- Determine the getter method name for a provided class property name
- getReflection() : ReflectionClass
- methodify() : array<string|int, mixed>|null
- setMethodify() : string|null
- Determine the setter method name for a provided class property name
- tablify() : string|null
- Converts the name of a model class to that of a table.
- init() : mixed
Properties
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
classify()
Translates a table name to a fully qualified model class name.
public
static classify(string $table_name) : string|null
Parameters
- $table_name : string
Tags
Return values
string|nullextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetMethodify()
Determine the getter method name for a provided class property name
public
static getMethodify(string $property) : string|null
Parameters
- $property : string
Return values
string|nullgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassmethodify()
public
static methodify(string $property) : array<string|int, mixed>|null
Parameters
- $property : string
Return values
array<string|int, mixed>|nullsetMethodify()
Determine the setter method name for a provided class property name
public
static setMethodify(string $property) : string|null
Parameters
- $property : string
Return values
string|nulltablify()
Converts the name of a model class to that of a table.
public
static tablify(string $class_name) : string|null
Parameters
- $class_name : string
-
The name of the model class to convert into a table name. Must be a fully qualified model class name
Return values
string|nullinit()
protected
init() : mixed