PHP Класс Neomerx\JsonApi\Schema\IdentitySchema

Наследование: extends SchemaProvider
Показать файл Открыть проект

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

Метод Описание
__construct ( Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface $factory, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container, string $classType, Closure $identityClosure )
getAttributes ( $resource )
getId ( $resource )
getRelationships ( $resource, $isPrimary, array $includeRelationships )

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

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

public __construct ( Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface $factory, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container, string $classType, Closure $identityClosure )
$factory Neomerx\JsonApi\Contracts\Schema\SchemaFactoryInterface
$container Neomerx\JsonApi\Contracts\Schema\ContainerInterface
$classType string
$identityClosure Closure function($resource) : string

getAttributes() публичный Метод

public getAttributes ( $resource )

getId() публичный Метод

public getId ( $resource )

getRelationships() публичный Метод

public getRelationships ( $resource, $isPrimary, array $includeRelationships )
$includeRelationships array