Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Neomerx
JsonApi
Contracts
Document
DocumentInterface
addErrors
Neomerx\JsonApi\Contracts\Document\DocumentInterface::addErrors PHP Method
DocumentInterface Interface Documentation
Exibir arquivo
Open project: neomerx/json-api
addErrors()
public
method
If you add errors information no other elements will be in output document.
public
addErrors
(
Neomerx\JsonApi\Contracts\Document\ErrorInterface[] |
ErrorCollection
$errors
) :
void
$errors
Neomerx\JsonApi\Contracts\Document\ErrorInterface[] |
Neomerx\JsonApi\Exceptions\ErrorCollection
return
void
public function addErrors($errors);
DocumentInterface
addEmptyRelationshipToData
addEmptyRelationshipToIncluded
addError
addErrors
addJsonApiVersion
addNullRelationshipToData
addNullRelationshipToIncluded
addRelationshipToData
addRelationshipToIncluded
addToData
addToIncluded
getDocument
setDocumentLinks
setEmptyData
setMetaToDocument
setNullData
setResourceCompleted
setUrlPrefix
unsetData