Documentation

ANAFErrorAnswer extends ANAFResponse
in package

Used for error answers found during DownloadAnswer

Tags
see
ANAFAPIClient::DownloadAnswer()

credit to https://github.com/octapopa

Table of Contents

Properties

$AnswerID  : string
$cif_emitent  : string|null
$data_incarcare  : string|null
$index_incarcare  : string|null
$LastError  : Throwable|null
$message  : string|null
$rawResponse  : string|null

Methods

Create()  : ANAFErrorAnswer
Creează un obiect de tip ANAFDownloadedFileError dintr-un răspuns XML.
CreateError()  : ANAFErrorAnswer
Creează un obiect de tip ANAFDownloadedFileError dintr-o excepție.
HasError()  : bool
IsDuplicateUploadError()  : bool
IsExpectedErrorFormat()  : bool
IsSuccess()  : bool
IsSupported()  : bool
Checks for SimpleXML and libxml support in the current PHP environment.
Parse()  : void
CommonParseJSON()  : stdClass|array<string|int, mixed>|null
InternalCreateError()  : void
Utility method for implementers to create an error

Properties

Methods

Create()

Creează un obiect de tip ANAFDownloadedFileError dintr-un răspuns XML.

public static Create(string $id, string $rawResponse) : ANAFErrorAnswer
Parameters
$id : string
$rawResponse : string
Return values
ANAFErrorAnswer

IsDuplicateUploadError()

public IsDuplicateUploadError() : bool
Return values
bool

IsExpectedErrorFormat()

public static IsExpectedErrorFormat(string $rawContent) : bool
Parameters
$rawContent : string
Return values
bool

IsSuccess()

public IsSuccess() : bool
Return values
bool

IsSupported()

Checks for SimpleXML and libxml support in the current PHP environment.

public static IsSupported() : bool
Return values
bool

CommonParseJSON()

protected CommonParseJSON(string|null $response) : stdClass|array<string|int, mixed>|null
Parameters
$response : string|null
Return values
stdClass|array<string|int, mixed>|null
On this page

Search results