Creates a polyvalent instance.
public static instance ( array $options = [] ) : object | ||
$options | array | Array of options. Options are: - `'class'` _string_: the fully-namespaced class name. - `'extends'` _string_: the fully-namespaced parent class name. - `'args'` _array_: arguments to pass to the constructor. - `'methods'` _string_: override the method defined. |
Résultat | object | The created instance. |