PHP Class kahlan\Given

Datei anzeigen Open project: crysalead/kahlan

Protected Properties

Property Type Description
$_closure mixed The given value or a factory closure.
$_data array The scope's data.
$_parent object The parent scope.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

__get() public method

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

__invoke() public method

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

__set() public method

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

Property Details

$_closure protected_oe property

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

$_data protected_oe property

The scope's data.
protected array $_data
return array

$_parent protected_oe property

The parent scope.
protected object $_parent
return object