PHP Class Art4\JsonApiClient\Document

See also: http://jsonapi.org/format/#document-top-level
Inheritance: implements DocumentInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
Afficher le fichier Open project: art4/json-api-client Class Usage Examples

Protected Properties

Свойство Type Description
$container DataContainerInterface
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface

Méthodes publiques

Méthode Description
__construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent = null ) : Document
get ( string $key ) : mixed Get a value by the key of this document
parse ( object $object ) : Document

Méthodes protégées

Méthode Description
parseData ( null | object $data ) : Art4\JsonApiClient\ElementInterface Parse the data value

Method Details

__construct() public méthode

public __construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent = null ) : Document
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface
$parent Art4\JsonApiClient\AccessInterface
Résultat Document

get() public méthode

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

parse() public méthode

public parse ( object $object ) : Document
$object object The document body
Résultat Document

parseData() protected méthode

Parse the data value
protected parseData ( null | object $data ) : Art4\JsonApiClient\ElementInterface
$data null | object Data value
Résultat Art4\JsonApiClient\ElementInterface The parsed data

Property Details

$container protected_oe property

protected DataContainerInterface $container
Résultat DataContainerInterface

$manager protected_oe property

protected FactoryManagerInterface,Art4\JsonApiClient\Utils $manager
Résultat Art4\JsonApiClient\Utils\FactoryManagerInterface