Method | Description | |
---|---|---|
__construct ( |
||
addRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : void | ||
convertDataResourceToArray ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource, boolean $isShowAttributes ) : array | Convert resource object for 'data' section to array. | |
convertIncludedResourceToArray ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : array | Convert resource object for 'included' section to array. | |
getLinksRepresentation ( string | null $prefix = null, \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array |
||
setRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, mixed $value ) : void |
Method | Description | |
---|---|---|
convertResourceToArray ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource, array $resourceLinks, mixed $meta, boolean $isShowAttributes ) : array | Convert resource object to array. | |
getLinkRepresentation ( string | null $prefix = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $link = null ) : array | null | string | ||
getLinkageRepresentation ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : string>\array |
||
getRelationRepresentation ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation ) : array | ||
getUrlRepresentation ( string $url, null | object | array $meta = null ) : string | array |
public __construct ( |
||
$document |
public addRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : void | ||
$target | array | |
$parent | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
$relation | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface | |
$resource | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
return | void |
public convertDataResourceToArray ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource, boolean $isShowAttributes ) : array | ||
$resource | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
$isShowAttributes | boolean | |
return | array |
public convertIncludedResourceToArray ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $resource ) : array | ||
$resource | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
return | array |
public setRelationshipTo ( array &$target, Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relation, mixed $value ) : void | ||
$target | array | |
$parent | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
$relation | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface | |
$value | mixed | |
return | void |