PHP Class kahlan\Given

Afficher le fichier Open project: crysalead/kahlan

Protected Properties

Свойство Type Description
$_closure mixed The given value or a factory closure.
$_data array The scope's data.
$_parent object The parent scope.

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

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

__invoke() public méthode

Returns the given data
public __invoke ( $parent = null ) : mixed
Résultat mixed

__set() public méthode

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

Property Details

$_closure protected_oe property

The given value or a factory closure.
protected mixed $_closure
Résultat mixed

$_data protected_oe property

The scope's data.
protected array $_data
Résultat array

$_parent protected_oe property

The parent scope.
protected object $_parent
Résultat object