PHP Class Neomerx\JsonApi\Schema\IdentitySchema

Inheritance: extends SchemaProvider
Datei anzeigen Open project: neomerx/json-api

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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 method

public getAttributes ( $resource )

getId() public method

public getId ( $resource )

getRelationships() public method

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