Peripheral
Peripheral
- Full name:
\Onslip360\API\Peripheral
- Parent class:
\Onslip360\Onslip360Object
Properties
created
public string|null $created
deleted
public string|null $deleted
deviceId
public string|null $deviceId
function
public \Onslip360\API\Peripheral\PeripheralFunction|null $function
id
public int|null $id
kitchenPrinterConfig
public \Onslip360\API\KitchenPrinterConfig|null $kitchenPrinterConfig
labels
public array|null $labels
location
public int|null $location
name
public string|null $name
serviceId
public string|null $serviceId
tags
public array|null $tags
updated
public string|null $updated
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
virtualDevice
public \Onslip360\API\VirtualDevice|null $virtualDevice
Methods
__construct
public __construct(string|null $created = null, string|null $deleted = null, string|null $deviceId = null, \Onslip360\API\Peripheral\PeripheralFunction|null $function = null, int|null $id = null, \Onslip360\API\KitchenPrinterConfig|null $kitchenPrinterConfig = null, int[]|null $labels = null, int|null $location = null, string|null $name = null, string|null $serviceId = null, string[]|null $tags = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null, \Onslip360\API\VirtualDevice|null $virtualDevice = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$created | string|null | |
$deleted | string|null | |
$deviceId | string|null | |
$function | \Onslip360\API\Peripheral\PeripheralFunction|null | |
$id | int|null | |
$kitchenPrinterConfig | \Onslip360\API\KitchenPrinterConfig|null | |
$labels | int[]|null | |
$location | int|null | |
$name | string|null | |
$serviceId | string|null | |
$tags | string[]|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null | |
$virtualDevice | \Onslip360\API\VirtualDevice|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05