Neomerx\JsonApi\Contracts\Encoder\EncoderInterface::encodeErrors PHP Method

encodeErrors() public method

Encode errors as JSON API string.
public encodeErrors ( Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | ErrorCollection $errors ) : string
$errors Neomerx\JsonApi\Contracts\Document\ErrorInterface[] | Neomerx\JsonApi\Exceptions\ErrorCollection
return string
    public function encodeErrors($errors);