PHP 클래스 kahlan\Given

파일 보기 프로젝트 열기: crysalead/kahlan

보호된 프로퍼티들

프로퍼티 타입 설명
$_closure mixed The given value or a factory closure.
$_data array The scope's data.
$_parent object The parent scope.

공개 메소드들

메소드 설명
__construct ( array $closure ) The Constructor.
__get ( string $key ) : mixed Getter.
__invoke ( $parent = null ) : mixed Returns the given data
__set ( string $key, mixed $value ) : mixed Setter.

메소드 상세

__construct() 공개 메소드

The Constructor.
public __construct ( array $closure )
$closure array A closure.

__get() 공개 메소드

Getter.
public __get ( string $key ) : mixed
$key string The name of the variable.
리턴 mixed The value of the variable.

__invoke() 공개 메소드

Returns the given data
public __invoke ( $parent = null ) : mixed
리턴 mixed

__set() 공개 메소드

Setter.
public __set ( string $key, mixed $value ) : mixed
$key string The name of the variable.
$value mixed The value of the variable.
리턴 mixed The value of the variable.

프로퍼티 상세

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

The given value or a factory closure.
protected mixed $_closure
리턴 mixed

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

The scope's data.
protected array $_data
리턴 array

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

The parent scope.
protected object $_parent
리턴 object