PHP Класс Art4\JsonApiClient\Relationship

См. также: http://jsonapi.org/format/#document-resource-object-relationships
Наследование: implements RelationshipInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
Показать файл Открыть проект

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

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

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

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

Защищенные методы

Метод Описание
parseData ( null | array | object $data ) : null | ResourceIdentifier | ResourceIdentifierCollection Parse the data value

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

__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

parseData() защищенный метод

Parse the data value
protected parseData ( null | array | object $data ) : null | ResourceIdentifier | ResourceIdentifierCollection
$data null | array | object Data value
Результат null | ResourceIdentifier | ResourceIdentifierCollection The parsed data

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

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

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

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

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