ClassBuilder
in package
implements
ContainerInterface
Class ClassBuilder
Interfaces, Classes and Traits
- ContainerInterface
Table of Contents
- $classSettings : mixed
- $objectList : mixed
- $instance : SingletonPrototype
- get() : bool|mixed
- return a instance for the $className param
- has() : bool
- Returns true if the container can return an entry for the given identifier.
- instance() : SingletonPrototype
- return the singleton instance for the prototype class
- remove() : void
- Remove a prototype from the arrayList
- setUp() : void
- Setup an instance of a specified class.
- searchClassInfo() : mixed
- __construct() : mixed
- SingletonPrototype constructor.
Properties
$classSettings
protected
mixed
$classSettings
= []
$objectList
protected
mixed
$objectList
= []
$instance
private
static SingletonPrototype
$instance
Methods
get()
return a instance for the $className param
public
get(string $className) : bool|mixed
Parameters
- $className : string
Tags
Return values
bool|mixed —has()
Returns true if the container can return an entry for the given identifier.
public
has(string $id) : bool
Returns false otherwise.
has($id) returning true does not mean that get($id) will not throw an exception.
It does however mean that get($id) will not throw a NotFoundExceptionInterface.
Parameters
- $id : string
-
Identifier of the entry to look for.
Return values
bool —instance()
return the singleton instance for the prototype class
public
static instance() : SingletonPrototype
Return values
SingletonPrototype —remove()
Remove a prototype from the arrayList
public
remove(string $objectReference) : void
Parameters
- $objectReference : string
Return values
void —setUp()
Setup an instance of a specified class.
public
setUp(string $className, $object) : void
Parameters
Return values
void —searchClassInfo()
protected
searchClassInfo( $className) : mixed
Parameters
Tags
Return values
mixed —__construct()
SingletonPrototype constructor.
private
__construct() : mixed