Microable
Table of Contents
Properties
- $macros : array<string|int, mixed>
Methods
- __call() : mixed
- Dynamically handle calls to the class.
- __callStatic() : mixed
- Dynamically handle calls to the class.
- flushMacros() : void
- Remove all the macros we had registered
- hasMacro() : bool
- Check if we have a method in the balonables
- macro() : void
- Add a new mixable to the macros
- mixin() : void
- Mix another object into the class.
Properties
$macros
protected
static array<string|int, mixed>
$macros
= []
Methods
__call()
Dynamically handle calls to the class.
public
__call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Tags
__callStatic()
Dynamically handle calls to the class.
public
static __callStatic(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Tags
flushMacros()
Remove all the macros we had registered
public
static flushMacros() : void
hasMacro()
Check if we have a method in the balonables
public
static hasMacro(string $name) : bool
Parameters
- $name : string
Return values
boolmacro()
Add a new mixable to the macros
public
static macro(string $key, $value) : void
Parameters
mixin()
Mix another object into the class.
public
static mixin(object $mixin[, bool $replace = true ]) : void
Parameters
- $mixin : object
- $replace : bool = true