PHP Class Art4\JsonApiClient\ResourceIdentifierCollection

See also: http://jsonapi.org/format/#document-resource-objects
Inheritance: implements ResourceIdentifierCollectionInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
Datei anzeigen Open project: art4/json-api-client

Protected Properties

Property Type Description
$container DataContainerInterface
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface

Public Methods

Method Description
__construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent ) Sets the manager and parent
get ( string $key ) : mixed Get a value by the key of this document
parse ( mixed $object ) : self Parses the data for this element

Protected Methods

Method Description
parseResource ( object $data ) : Art4\JsonApiClient\ElementInterface Generate a new resource from an object

Method Details

__construct() public method

Sets the manager and parent
public __construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent )
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface The manager
$parent Art4\JsonApiClient\AccessInterface The parent

get() public method

Get a value by the key of this document
public get ( string $key ) : mixed
$key string The key of the value
return mixed The value

parse() public method

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

parseResource() protected method

Generate a new resource from an object
protected parseResource ( object $data ) : Art4\JsonApiClient\ElementInterface
$data object The resource data
return Art4\JsonApiClient\ElementInterface The resource

Property Details

$container protected_oe property

protected DataContainerInterface $container
return DataContainerInterface

$manager protected_oe property

protected FactoryManagerInterface,Art4\JsonApiClient\Utils $manager
return Art4\JsonApiClient\Utils\FactoryManagerInterface