ModelExtender
in package
Contains method to help the extension of a model.
Table of Contents
- $classes : array<string|int, mixed>
- $reader : AnnotationReader
- __construct() : mixed
- ModelExtender constructor.
- add() : void
- addMore() : void
- get() : callable|null
- Returns a callback registered in the model extender globally.
Properties
$classes
private
static array<string|int, mixed>
$classes
= []
$reader
private
AnnotationReader
$reader
Methods
__construct()
ModelExtender constructor.
public
__construct() : mixed
Return values
mixed —add()
public
add(string $class) : void
Parameters
- $class : string
Tags
Return values
void —addMore()
public
addMore(array<string|int, string> $classes) : void
Parameters
- $classes : array<string|int, string>
Return values
void —get()
Returns a callback registered in the model extender globally.
public
static get(string $modelClassName, string $methodName) : callable|null
Parameters
- $modelClassName : string
- $methodName : string