Documentation

TVAResponse extends EntityResponse
in package

Represents the response structure for @see \EdituraEDU\ANAF\ANAFAPIClient::CheckTVAStatus()

Table of Contents

Properties

$Entity  : Entity|null
$IsTVARegistered  : bool|null
$LastError  : Throwable|null
$rawResponse  : string|null

Methods

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

Properties

$IsTVARegistered

public bool|null $IsTVARegistered = null

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

        
On this page

Search results