PHP 클래스 Vinelab\Minion\Dictionary

저자: Abed Halawi ([email protected])
파일 보기 프로젝트 열기: vinelab/minion 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $attributes )
__get ( string $attribute ) : mixed Override the magic __get to reach the attribtues of this dictionary.
__isset ( string $attribute ) : boolean Override to support calling isset() on attributes of this dictionary.
make ( mixed $attributes ) : Dictionary Get a new dictionary with the given attributes.
toArray ( ) : array Get the array representation of this dictionary.
toKeyValue ( array $values ) : array Transform the given array of values into a key-value pair recursively.

메소드 상세

__construct() 공개 메소드

public __construct ( array $attributes )
$attributes array

__get() 공개 메소드

Override the magic __get to reach the attribtues of this dictionary.
public __get ( string $attribute ) : mixed
$attribute string
리턴 mixed

__isset() 공개 메소드

Override to support calling isset() on attributes of this dictionary.
public __isset ( string $attribute ) : boolean
$attribute string
리턴 boolean

make() 공개 정적인 메소드

Get a new dictionary with the given attributes.
public static make ( mixed $attributes ) : Dictionary
$attributes mixed
리턴 Dictionary

toArray() 공개 메소드

Get the array representation of this dictionary.
public toArray ( ) : array
리턴 array

toKeyValue() 공개 메소드

Transform the given array of values into a key-value pair recursively.
public toKeyValue ( array $values ) : array
$values array
리턴 array