PHP 클래스 Inspekt\AccessorAbstract

저자: Ed Finkler
파일 보기 프로젝트 열기: funkatron/inspekt

보호된 프로퍼티들

프로퍼티 타입 설명
$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