PHP Class Kahlan\Box\Wrapper

Datei anzeigen Open project: crysalead/kahlan Class Usage Examples

Protected Properties

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.

Public Methods

Method Description
__construct ( array $config = [] ) The constructor
get ( ) : mixed Resolve the dependency.

Method Details

__construct() public method

The constructor
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.

get() public method

Resolve the dependency.
public get ( ) : mixed
return mixed The shared variable or an new instance.

Property Details

$__box protected_oe property

The related box instance
protected object $__box
return object

$__dependency protected_oe property

The resolved dependency.
protected array $__dependency
return array

$__name protected_oe property

The name of a dependency definition
protected string $__name
return string

$__params protected_oe property

The parameters to use for resolving the dependency.
protected array $__params
return array

$__resolved protected_oe property

Boolean indicating if the dependency has been resolved or not.
protected bool $__resolved
return boolean