Interface Yiisoft\Hydrator\ObjectFactory\ObjectFactoryInterface
| Implemented by | Yiisoft\ |
|---|
An interface for object factory.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| create() | Creates an object of the given class. | Yiisoft\ |
Method Details
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\ |
|
|---|---|---|
public function create(ReflectionClass $reflectionClass, array $constructorArguments): object;
User Contributed Notes
Leave a comment
Join the conversation to share a note.