PHP Класс kahlan\Given

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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