Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Neomerx
JsonApi
Contracts
Document
DocumentInterface
addJsonApiVersion
Neomerx\JsonApi\Contracts\Document\DocumentInterface::addJsonApiVersion PHP Method
DocumentInterface Interface Documentation
Show file
Open project: neomerx/json-api
addJsonApiVersion()
public
method
Add JSON API version information.
See link:
http://jsonapi.org/format/#document-jsonapi-object
public
addJsonApiVersion
(
string
$version
,
mixed
|
null
$meta
= null ) :
void
$version
string
$meta
mixed
|
null
return
void
public function addJsonApiVersion($version, $meta = null);
DocumentInterface
addEmptyRelationshipToData
addEmptyRelationshipToIncluded
addError
addErrors
addJsonApiVersion
addNullRelationshipToData
addNullRelationshipToIncluded
addRelationshipToData
addRelationshipToIncluded
addToData
addToIncluded
getDocument
setDocumentLinks
setEmptyData
setMetaToDocument
setNullData
setResourceCompleted
setUrlPrefix
unsetData