PHP Трейт Art4\JsonApiClient\Utils\AccessTrait

Показать файл Открыть проект

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

Метод Описание
asArray ( boolean $fullArray = false ) : array Convert this object in an array
getKeys ( ) : array Returns the keys of all setted values in this object
has ( string $key ) : boolean Check if a value exists in this object

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

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

Convert this object in an array
public asArray ( boolean $fullArray = false ) : array
$fullArray boolean If true, objects are transformed into arrays recursively
Результат array

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

Returns the keys of all setted values in this object
public getKeys ( ) : array
Результат array Keys of all setted values

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

Check if a value exists in this object
public has ( string $key ) : boolean
$key string The key of the value
Результат boolean true if data exists, false if not