Method |
Description |
|
bindParam ( string $name, mixed $value ) : Kraken\Util\Factory\FactoryInterface |
Bind param $value under $name key to Factory. |
|
create ( mixed[] $args = [] ) : mixed |
Create object with given arguments using factoryMethod stored in Factory. |
|
define ( callable $factoryMethod ) : Kraken\Util\Factory\FactoryInterface |
Define factory method for some object in Factory. |
|
getDefinition ( ) : callable |
Return factory method definition stored in Factory. |
|
getParam ( string $name ) : mixed |
Get param stored under $name key. |
|
getParams ( ) : mixed[] |
Return all params stored in Factory in the form of associative array. |
|
hasDefinition ( ) : boolean |
Check if there is any factory method definition stored in Factory. |
|
hasParam ( string $param ) : boolean |
Check if there is any param under $param $key. |
|
unbindParam ( string $name ) : Kraken\Util\Factory\FactoryInterface |
Unbind param stored under $name key from Factory. |
|