BaseController
extends AbstractController
Table of Contents
-
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
-
$body
: array<string, mixed>
-
entityNotFound()
: ResponseInterface
-
formatIteratorPlain()
: array<string|int, array<string, mixed>>
-
jsonIterator()
: ResponseInterface
-
jsonIteratorPlain()
: ResponseInterface
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
$body
public
array<string, mixed>
$body
entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
-
$message
: string
-
-
throws
-
JsonException
Return values
ResponseInterface
—
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
-
$iterator
: Iterator<string|int, T>
-
-
template
-
-
throws
-
JsonException
Return values
array<string|int, array<string, mixed>>
—
jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
-
$iterator
: Iterator
-
-
throws
-
JsonException
Return values
ResponseInterface
—
jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
-
$iterator
: Iterator
-
-
throws
-
JsonException
Return values
ResponseInterface
—