PHP Class Art4\JsonApiClient\ResourceNull

Inheritance: implements ResourceNullInterface
Datei anzeigen Open project: art4/json-api-client

Public Methods

Method Description
__construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent ) Constructor need for mocking
asArray ( ) : null Convert this object in an array
get ( string $key ) Get a value by the key of this identifier
getKeys ( ) : array Returns the keys of all setted values in this resource
has ( string $key ) : boolean Check if a value exists in this resource
parse ( mixed $object ) : self Parses the data for this element

Method Details

__construct() public method

Constructor need for mocking
public __construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent )
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface The manager
$parent Art4\JsonApiClient\AccessInterface The parent

asArray() public method

Convert this object in an array
public asArray ( ) : null
return null

get() public method

Get a value by the key of this identifier
public get ( string $key )
$key string The key of the value

getKeys() public method

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

has() public method

Check if a value exists in this resource
public has ( string $key ) : boolean
$key string The key of the value
return boolean false

parse() public method

Parses the data for this element
public parse ( mixed $object ) : self
$object mixed The data
return self