Méthode |
Description |
|
bindParam ( string $name, mixed $value ) : Kraken\Util\Factory\FactoryInterface |
Bind param $value under $name key to Factory. |
|
create ( string $name, mixed[] $args = [] ) : mixed |
Create object with given arguments using factoryMethod stored under $name key. |
|
define ( string $name, callable $factoryMethod ) : Kraken\Util\Factory\FactoryInterface |
Define factory method for some object and register in under $name key. |
|
getDefinition ( string $name ) : callable |
Return factory method definition stored under $name key. |
|
getDefinitions ( ) : callable[] |
Return all definitions stored in Factory in the form of associative array. |
|
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 ( string $name ) : boolean |
Check if there is any factory method definition stored under $name key. |
|
hasParam ( string $param ) : boolean |
Check if there is any param under $param $key. |
|
remove ( string $name ) : Kraken\Util\Factory\FactoryInterface |
Remove factory method definition stored under $name key. |
|
unbindParam ( string $name ) : Kraken\Util\Factory\FactoryInterface |
Unbind param stored under $name key from Factory. |
|