Documentation

Inflector extends Component
in package

FinalYes
Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

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

Methods

__callStatic()

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, 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
throws
IllegalArgumentException
Return values
string|null

extends()

public extends(ReflectionClass $reflector) : bool
Parameters
$reflector : ReflectionClass
Return values
bool

getMethodify()

Determine the getter method name for a provided class property name

public static getMethodify(string $property) : string|null
Parameters
$property : string
Return values
string|null

getReflection()

public getReflection() : ReflectionClass
Return values
ReflectionClass

methodify()

public static methodify(string $property) : array<string|int, mixed>|null
Parameters
$property : string
Return values
array<string|int, mixed>|null

setMethodify()

Determine the setter method name for a provided class property name

public static setMethodify(string $property) : string|null
Parameters
$property : string
Return values
string|null

tablify()

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|null

        
On this page

Search results