Documentation

ExtractedAnswer extends ANAFResponse
in package

Represents the base structure for some ANAF API responses

Table of Contents

Properties

$content  : string|null
$Error  : ANAFErrorAnswer|null
$index_incarcare  : string|null
$IsWellFormedError  : bool
$LastError  : Throwable|null
$RanSignatureVerification  : bool
$rawResponse  : string|null
$signature  : string|null
$SignatureVerificationResult  : SignatureVerificationResult|null
$TempFileName  : string|null
$VerifySignature  : bool

Methods

Create()  : self
CreateError()  : self
HasError()  : bool
IsSuccess()  : bool
IsSupported()  : bool
Parse()  : void
CommonParseJSON()  : stdClass|array<string|int, mixed>|null
InternalCreateError()  : void
Utility method for implementers to create an error
DeleteTempFile()  : void

Properties

$RanSignatureVerification

public bool $RanSignatureVerification = false

Methods

Create()

public static Create(string $rawResponse, bool $verifySignature) : self
Parameters
$rawResponse : string
$verifySignature : bool
Return values
self

CreateError()

public static CreateError(Throwable $error) : self
Parameters
$error : Throwable
Return values
self

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
On this page

Search results