PHP 클래스 Kahlan\Box\Wrapper

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$__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.

공개 메소드들

메소드 설명
__construct ( array $config = [] ) The constructor
get ( ) : mixed Resolve the dependency.

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

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

프로퍼티 상세

$__box 보호되어 있는 프로퍼티

The related box instance
protected object $__box
리턴 object

$__dependency 보호되어 있는 프로퍼티

The resolved dependency.
protected array $__dependency
리턴 array

$__name 보호되어 있는 프로퍼티

The name of a dependency definition
protected string $__name
리턴 string

$__params 보호되어 있는 프로퍼티

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

$__resolved 보호되어 있는 프로퍼티

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