PHP Класс Art4\JsonApiClient\RelationshipLink

См. также: http://jsonapi.org/format/#document-resource-object-relationships links: a links object containing at least one of the following: - self: a link for the relationship itself (a "relationship link"). This link allows the client to directly manipulate the relationship. For example, it would allow a client to remove an author from an article without deleting the people resource itself. - related: a related resource link A relationship object that represents a to-many relationship MAY also contain pagination links under the links member, as described below.
Наследование: implements RelationshipLinkInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$container DataContainerInterface
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface
$parent Art4\JsonApiClient\AccessInterface

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
setLink ( string $name, string $link ) : self Set a link
setPaginationLink ( string $name, string $value ) : self Set a pagination link

Описание методов

__construct() публичный метод

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() публичный метод

Get a value by the key of this object
public get ( string $key ) : mixed
$key string The key of the value
Результат mixed The value

parse() публичный метод

Parses the data for this element
public parse ( mixed $object ) : self
$object mixed The data
Результат self

Описание свойств

$container защищенное свойство

protected DataContainerInterface $container
Результат DataContainerInterface

$manager защищенное свойство

protected FactoryManagerInterface,Art4\JsonApiClient\Utils $manager
Результат Art4\JsonApiClient\Utils\FactoryManagerInterface

$parent защищенное свойство

protected AccessInterface,Art4\JsonApiClient $parent
Результат Art4\JsonApiClient\AccessInterface