Метод | Описание | |
---|---|---|
createContainer ( array $providers = [] ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | Create schema provider container. | |
createIdentitySchema ( Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container, string $classType, Closure $identityClosure ) : Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | Create schema for identity objects. | |
createLink ( string $subHref, array | object | null $meta = null, boolean $treatAsHref = false ) : Neomerx\JsonApi\Contracts\Document\LinkInterface | Create link. | |
createRelationshipObject ( string $name, object | array | null $data, \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array |
Create relationship object. | |
createResourceIdentifierContainerAdapter ( Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | Create adapter for schema provider container that returns 'resource identifiers' schemes. | |
createResourceIdentifierSchemaAdapter ( Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface $schema ) : Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | Create an adapter for schema that will provide data to encode them as resource identifiers. | |
createResourceObject ( Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface $schema, object $resource, boolean $isInArray, int>\array |
Create resource object. |
public createContainer ( array $providers = [] ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | ||
$providers | array | |
Результат | Neomerx\JsonApi\Contracts\Schema\ContainerInterface |
public createIdentitySchema ( Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container, string $classType, Closure $identityClosure ) : Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | ||
$container | Neomerx\JsonApi\Contracts\Schema\ContainerInterface | |
$classType | string | |
$identityClosure | Closure | function($resource) : string |
Результат | Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface |
public createLink ( string $subHref, array | object | null $meta = null, boolean $treatAsHref = false ) : Neomerx\JsonApi\Contracts\Document\LinkInterface | ||
$subHref | string | |
$meta | array | object | null | |
$treatAsHref | boolean | If $subHref is a full URL and must not be concatenated with other URLs. |
Результат | Neomerx\JsonApi\Contracts\Document\LinkInterface |
public createRelationshipObject ( string $name, object | array | null $data, \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array |
||
$name | string | |
$data | object | array | null | |
$links | \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array | |
$meta | mixed | |
$isShowData | boolean | |
$isRoot | boolean | |
Результат | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface |
public createResourceIdentifierContainerAdapter ( Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | ||
$container | Neomerx\JsonApi\Contracts\Schema\ContainerInterface | |
Результат | Neomerx\JsonApi\Contracts\Schema\ContainerInterface |
public createResourceIdentifierSchemaAdapter ( Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface $schema ) : Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | ||
$schema | Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | |
Результат | Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface |
public createResourceObject ( Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface $schema, object $resource, boolean $isInArray, int>\array |
||
$schema | Neomerx\JsonApi\Contracts\Schema\SchemaProviderInterface | |
$resource | object | |
$isInArray | boolean | |
$attributeKeysFilter | int>\array |
|
Результат | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface |