Property | Type | Description | |
---|---|---|---|
$__box | object | The related box instance | |
$__dependency | array | The resolved dependency. | |
$__name | string | The name of a dependency definition | |
$__params | array | The parameters to use for resolving the dependency. | |
$__resolved | boolean | Boolean indicating if the dependency has been resolved or not. |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) | The constructor | |
get ( ) : mixed | Resolve the dependency. |
public __construct ( array $config = [] ) | ||
$config | array | The config array. Possible values are: - `'box'` _object_: The box instance (required). - `'name'` _string_: The name of the dependency definition. - `'params'` _array_ : The parameters to use for resolving the dependency. |
protected array $__dependency | ||
return | array |
protected string $__name | ||
return | string |
protected array $__params | ||
return | array |
protected bool $__resolved | ||
return | boolean |