0

Interface Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface

Implemented byYiisoft\Hydrator\ObjectFactory\ContainerObjectFactory, Yiisoft\Hydrator\ObjectFactory\ReflectionObjectFactory

An interface for object factory.

Public Methods

Hide inherited methods

Method Description Defined By
create() Creates an object of the given class. Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface

Method Details

Hide inherited methods

create() public abstract method

Creates an object of the given class.

Callers must not pass enums to this method, so implementations aren't required to handle them.

public abstract object create ( ReflectionClass $reflectionClass, array $constructorArguments )
$reflectionClass ReflectionClass
$constructorArguments array
throws Yiisoft\Hydrator\Exception\NonInstantiableException

                public function create(ReflectionClass $reflectionClass, array $constructorArguments): object;