Documentation

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

Methods

IsSuccess()

public IsSuccess() : 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

InternalCreateError()

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

        
On this page

Search results