PHP Class Neomerx\JsonApi\Schema\IdentitySchema

Inheritance: extends SchemaProvider
Afficher le fichier Open project: neomerx/json-api

Méthodes publiques

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

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

public getAttributes ( $resource )

getId() public méthode

public getId ( $resource )

getRelationships() public méthode

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