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

encodeError() public method

Encode error as JSON API string.
public encodeError ( Neomerx\JsonApi\Contracts\Document\ErrorInterface $error ) : string
$error Neomerx\JsonApi\Contracts\Document\ErrorInterface
return string
    public function encodeError(ErrorInterface $error);