Метод | Описание | |
---|---|---|
create ( array $args = [], string $class = '' ) : object | Returns a new object of the given (or default) class, instantiated with the given arguments. |
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. |
Результат | object | Object of the given (or default) class, instantiated with the given arguments. |