Documentation

PagedAnswerListResponse extends ANAFAnswerListResponse
in package

Pseudo response for unifying multiple paged answer lists into a single response

Tags
see
ANAFAPIClient::ListAnswersWithPagination()

Table of Contents

Properties

$cui  : string
$ErrorPages  : array<string|int, InternalPagedAnswersResponse>
Stores a reference to the original errors
$LastError  : Throwable|null
$mesaje  : array<string|int, ANAFAnswer>
$PageCount  : int
Total number of pages
$Pages  : array<string|int, InternalPagedAnswersResponse>
Stores a reference to the original responses NOTE: empty responses (no messages) are not stored
$rawResponse  : string|null
$serial  : string
$titlu  : string

Methods

__construct()  : void
Create()  : PagedAnswerListResponse
CreateError()  : ANAFAnswerListResponse
Create an error response For internal use!
HasError()  : bool
IsSuccess()  : bool
Parse()  : void
CommonParseJSON()  : stdClass|array<string|int, mixed>|null
InternalCreateError()  : void
Utility method for implementers to create an error
CopyFromParsed()  : void

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

        
On this page

Search results