PHP Класс Inspekt\AccessorAbstract

Автор: Ed Finkler
Показать файл Открыть проект

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

Свойство Тип Описание
$cage string the cage object this is attached to, provided in the constructor

Открытые методы

Метод Описание
__construct ( Cage $cage, array $args = null ) constructor
run ( string $key = null ) : mixed This executes the accessor on the key, either passed as the only argument, or the first value in $this->args;

Защищенные методы

Метод Описание
getValue ( string $key ) : mixed Retrieves a value from the cage
inspekt ( $val ) : mixed
walkArray ( mixed $input ) : mixed If an array is the value of the given key, this method walks the array recursively, applying $this->inspekt on any non-array values

Описание методов

__construct() публичный метод

constructor
Автор: Ed Finkler
public __construct ( Cage $cage, array $args = null )
$cage Cage
$args array optional

getValue() защищенный метод

Retrieves a value from the cage
Автор: Ed Finkler
protected getValue ( string $key ) : mixed
$key string
Результат mixed

inspekt() абстрактный защищенный метод

abstract protected inspekt ( $val ) : mixed
$val
Результат mixed

run() публичный метод

This executes the accessor on the key, either passed as the only argument, or the first value in $this->args;
Автор: Ed Finkler
public run ( string $key = null ) : mixed
$key string
Результат mixed

walkArray() защищенный метод

If an array is the value of the given key, this method walks the array recursively, applying $this->inspekt on any non-array values
Автор: Ed Finkler
protected walkArray ( mixed $input ) : mixed
$input mixed
Результат mixed

Описание свойств

$cage защищенное свойство

the cage object this is attached to, provided in the constructor
protected string $cage
Результат string