Method | Description | |
---|---|---|
__construct ( ) | Prevent instance construction and cloning (copying of object instance) | |
getInstanceOf ( $class ) | * The overridden methods can't have a different signature, so there needs to be two functions: one, internal to a class, that calls this one (a singleton factory) that produces objects of the requested classes | |
instance ( ) : object | Declarations that extend this method must have the same signature (arguments and returned types) to pass E_STRICT |
Method | Description | |
---|---|---|
__clone ( ) |
final protected __construct ( ) |
protected static getInstanceOf ( $class ) |