0 follower

Interface Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface

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

An interface for object factory.

Method Details

Hide inherited methods

create() public abstract method

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;