Documentation

InternalPagedAnswersResponse extends ANAFAnswerListResponse
in package

Response to the paged answers API endpoint

Tags
see
ANAFAPIClient::GetAnswerPage()

Table of Contents

Properties

$cui  : string
$index_pagina_curenta  : int
$LastError  : Throwable|null
$mesaje  : array<string|int, ANAFAnswer>
$numar_inregistrari_in_pagina  : int
$numar_total_inregistrari  : int
$numar_total_inregistrari_per_pagina  : int
$numar_total_pagini  : int
$rawResponse  : string|null
$serial  : string
$titlu  : string

Methods

Create()  : InternalPagedAnswersResponse
CreateError()  : InternalPagedAnswersResponse
Create an error response For internal use!
HasError()  : bool
IsLastPage()  : bool
Check if the current page is the last page Will always return true if the response is not successful
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

IsLastPage()

Check if the current page is the last page Will always return true if the response is not successful

public IsLastPage() : bool
Return values
bool

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