Interface Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface
| Implemented by | Yiisoft\Hydrator\ObjectFactory\ContainerObjectFactory, Yiisoft\Hydrator\ObjectFactory\ReflectionObjectFactory |
|---|
An interface for object factory.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| create() | Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface |
Method Details
| 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;
Signup or Login in order to comment.