Returns a fully constructed object based on $name using $args and $share as constructor arguments if supplied
public create ( $name, array $args = [], array $share = [] ) : object | ||
$args | array | An array with any additional arguments to be passed into the constructor upon instantiation |
$share | array | Whether or not this class instance be shared, so that the same instance is passed around each time |
return | object | A fully constructed object based on the specified input arguments |