$_instance
$_instance :
Array to hold instances of all derived classes.
Abstract class as a basis for Singleton.
getInstance(array|mixed|null $inject = null) : \phpWTL\$_instance[$class]
Create new instance or give back already existing one.
array|mixed|null | $inject | Can be used to inject one or more parameter(s) into the constructor |
The instance of a derived class