Neomerx\JsonApi\Contracts\Document\DocumentInterface::addErrors PHP 메소드

addErrors() 공개 메소드

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
리턴 void
    public function addErrors($errors);