RegistryTrait
Table of Contents
- $members : array<string|int, object>
- __callStatic() : object
- preprocessMember() : object
- setup() : void
- Inserts default entries into the registry.
- _registryFromString() : object
- _registryGetAll() : array<string|int, object>
- _registryRegister() : void
- Adds the given object to the registry.
Properties
$members
private
static array<string|int, object>
$members
= null
Methods
__callStatic()
public
static __callStatic(string $name, array<string|int, mixed> $arguments) : object
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Tags
Return values
object —preprocessMember()
protected
static preprocessMember(object $member) : object
Parameters
- $member : object
Return values
object —setup()
Inserts default entries into the registry.
protected
abstract static setup() : void
(This ought to be private, but traits suck too much for that.)
Return values
void —_registryFromString()
private
static _registryFromString(string $name) : object
Parameters
- $name : string
Tags
Return values
object —_registryGetAll()
private
static _registryGetAll() : array<string|int, object>
Return values
array<string|int, object> —_registryRegister()
Adds the given object to the registry.
private
static _registryRegister(string $name, object $member) : void
Parameters
- $name : string
- $member : object