ANAFVerifyResponse
extends ANAFResponse
in package
Represents the response structure for @see \EdituraEDU\ANAF\ANAFAPIClient::VerifyXML
Table of Contents
Properties
- $LastError : Throwable|null
- $Messages : array<string|int, mixed>
- $rawResponse : string|null
- $stare : string
- $trace_id : string
Methods
- Create() : ANAFVerifyResponse
- CreateError() : ANAFVerifyResponse
- HasError() : bool
- IsOK() : bool
- Check if the response is OK
- IsSuccess() : bool
- Parse() : void
- CommonParseJSON() : stdClass|array<string|int, mixed>|null
- InternalCreateError() : void
- Utility method for implementers to create an error
- CopyFromParsed() : void
- Similar to
Properties
$LastError
public
Throwable|null
$LastError
= null
$Messages
public
array<string|int, mixed>
$Messages
$rawResponse
public
string|null
$rawResponse
= null
$stare
public
string
$stare
$trace_id
public
string
$trace_id
Methods
Create()
public
static Create(mixed $rawResponse) : ANAFVerifyResponse
Parameters
- $rawResponse : mixed
Return values
ANAFVerifyResponseCreateError()
public
static CreateError(Throwable $error) : ANAFVerifyResponse
Parameters
- $error : Throwable
Return values
ANAFVerifyResponseHasError()
public
HasError() : bool
Return values
boolIsOK()
Check if the response is OK
public
IsOK() : bool
Return values
boolIsSuccess()
public
IsSuccess() : bool
Return values
boolParse()
public
Parse() : void
CommonParseJSON()
protected
CommonParseJSON(string|null $response) : stdClass|array<string|int, mixed>|null
Parameters
- $response : string|null
Return values
stdClass|array<string|int, mixed>|nullInternalCreateError()
Utility method for implementers to create an error
protected
InternalCreateError(string $message[, int $code = ANAFException::UNKNOWN_ERROR ][, Throwable|null $previous = null ]) : void
Parameters
- $message : string
- $code : int = ANAFException::UNKNOWN_ERROR
- $previous : Throwable|null = null
CopyFromParsed()
Similar to
private
CopyFromParsed(mixed $parsed) : void
Parameters
- $parsed : mixed