PHP Trait Art4\JsonApiClient\Utils\AccessTrait

Show file Open project: art4/json-api-client

Public Methods

Method Description
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

Method Details

asArray() public method

Convert this object in an array
public asArray ( boolean $fullArray = false ) : array
$fullArray boolean If true, objects are transformed into arrays recursively
return array

getKeys() public method

Returns the keys of all setted values in this object
public getKeys ( ) : array
return array Keys of all setted values

has() public method

Check if a value exists in this object
public has ( string $key ) : boolean
$key string The key of the value
return boolean true if data exists, false if not