PHP Class Art4\JsonApiClient\DocumentLink

See also: http://jsonapi.org/format/#document-top-level The top-level links object MAY contain the following members: - self: the link that generated the current response document. - related: a related resource link when the primary data represents a resource relationship. - pagination links for the primary data
Inheritance: implements DocumentLinkInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
Afficher le fichier Open project: art4/json-api-client

Protected Properties

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

Méthodes publiques

Méthode 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 object
parse ( mixed $object ) : self Parses the data for this element

Private Methods

Méthode Description
setLink ( string $name, string $link ) : self Set a link
setPaginationLink ( string $name, string $value ) : self Set a pagination link

Method Details

__construct() public méthode

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 méthode

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

parse() public méthode

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

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

$parent protected_oe property

protected AccessInterface,Art4\JsonApiClient $parent
Résultat Art4\JsonApiClient\AccessInterface