PHP Interface Inpsyde\MultilingualPress\Common\Factory

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method Description
create ( array $args = [], string $class = '' ) : object Returns a new object of the given (or default) class, instantiated with the given arguments.

Method Details

create() public method

Returns a new object of the given (or default) class, instantiated with the given arguments.
Since: 3.0.0
public create ( array $args = [], string $class = '' ) : object
$args array Optional. Constructor arguments. Defaults to empty array.
$class string Optional. Fully qualified class name. Defaults to empty string.
return object Object of the given (or default) class, instantiated with the given arguments.