PHP Class Inspekt\AccessorAbstract

Author: Ed Finkler
Afficher le fichier Open project: funkatron/inspekt

Protected Properties

Свойство Type Description
$cage string the cage object this is attached to, provided in the constructor

Méthodes publiques

Méthode Description
__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;

Méthodes protégées

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

Method Details

__construct() public méthode

constructor
Author: Ed Finkler
public __construct ( Cage $cage, array $args = null )
$cage Cage
$args array optional

getValue() protected méthode

Retrieves a value from the cage
Author: Ed Finkler
protected getValue ( string $key ) : mixed
$key string
Résultat mixed

inspekt() abstract protected méthode

abstract protected inspekt ( $val ) : mixed
$val
Résultat mixed

run() public méthode

This executes the accessor on the key, either passed as the only argument, or the first value in $this->args;
Author: Ed Finkler
public run ( string $key = null ) : mixed
$key string
Résultat mixed

walkArray() protected méthode

If an array is the value of the given key, this method walks the array recursively, applying $this->inspekt on any non-array values
Author: Ed Finkler
protected walkArray ( mixed $input ) : mixed
$input mixed
Résultat mixed

Property Details

$cage protected_oe property

the cage object this is attached to, provided in the constructor
protected string $cage
Résultat string