PHP Класс Vinelab\Minion\Dictionary

Автор: Abed Halawi ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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