Documentation

ANAFResponse
in package

AbstractYes

Represents the base structure for some ANAF API responses

Tags
TODO

make *Response classes extend this class

Table of Contents

Properties

$LastError  : Throwable|null
$rawResponse  : string|null

Methods

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

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

Search results