KnownDeviceController
extends BaseController
in package
Tags
Table of Contents
- DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
- $body : array<string, mixed>
- deleteKnownDevice() : ResponseInterface
- Deletes the known device by the given key
- entityNotFound() : ResponseInterface
- formatIteratorPlain() : array<string|int, array<string, mixed>>
- getKnownDevices() : ResponseInterface
- Returns a list of all known devices from the current user
- jsonIterator() : ResponseInterface
- jsonIteratorPlain() : ResponseInterface
- validateKnownDevice() : ResponseInterface
- Checks if the known device is valid and known
Constants
DEVICE_CODE_COOKIE
public
mixed
DEVICE_CODE_COOKIE
= 'JinyaDeviceCode'
Tags
Properties
$body
public
array<string, mixed>
$body
Methods
deleteKnownDevice()
Deletes the known device by the given key
public
deleteKnownDevice(string $key) : ResponseInterface
Parameters
- $key : string
Tags
Return values
ResponseInterface —entityNotFound()
public
entityNotFound(string $message) : ResponseInterface
Parameters
- $message : string
Tags
Return values
ResponseInterface —formatIteratorPlain()
public
formatIteratorPlain(Iterator<string|int, T> $iterator) : array<string|int, array<string, mixed>>
Parameters
- $iterator : Iterator<string|int, T>
Tags
Return values
array<string|int, array<string, mixed>> —getKnownDevices()
Returns a list of all known devices from the current user
public
getKnownDevices() : ResponseInterface
Tags
Return values
ResponseInterface —jsonIterator()
public
jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —jsonIteratorPlain()
public
jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
- $iterator : Iterator
Tags
Return values
ResponseInterface —validateKnownDevice()
Checks if the known device is valid and known
public
validateKnownDevice(string $key) : ResponseInterface
Parameters
- $key : string