InternalPagedAnswersResponse
extends ANAFAnswerListResponse
in package
Response to the paged answers API endpoint
Tags
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
$cui
public
string
$cui
$index_pagina_curenta
public
int
$index_pagina_curenta
= 0
$LastError
public
Throwable|null
$LastError
= null
$mesaje
public
array<string|int, ANAFAnswer>
$mesaje
$numar_inregistrari_in_pagina
public
int
$numar_inregistrari_in_pagina
= 0
$numar_total_inregistrari
public
int
$numar_total_inregistrari
= 0
$numar_total_inregistrari_per_pagina
public
int
$numar_total_inregistrari_per_pagina
= 0
$numar_total_pagini
public
int
$numar_total_pagini
= 0
$rawResponse
public
string|null
$rawResponse
= null
$serial
public
string
$serial
$titlu
public
string
$titlu
Methods
Create()
public
static Create(mixed $rawResponse) : InternalPagedAnswersResponse
Parameters
- $rawResponse : mixed
Return values
InternalPagedAnswersResponseCreateError()
Create an error response For internal use!
public
static CreateError(Throwable $error) : InternalPagedAnswersResponse
Parameters
- $error : Throwable
Return values
InternalPagedAnswersResponseHasError()
public
HasError() : bool
Return values
boolIsLastPage()
Check if the current page is the last page Will always return true if the response is not successful
public
IsLastPage() : bool
Return values
boolIsSuccess()
public
IsSuccess() : bool
Return values
boolParse()
public
Parse() : void
CommonParseJSON()
protected
CommonParseJSON(string|null $response) : stdClass|array<string|int, mixed>|null
Parameters
- $response : string|null
Return values
stdClass|array<string|int, mixed>|nullInternalCreateError()
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
CopyFromParsed()
private
CopyFromParsed(stdClass $parsed) : void
Parameters
- $parsed : stdClass