DevicesCreate extends Request
Create a new device.
Table of Contents
- $device : DeviceCreationJob|null
- The device to create
- from() : static
- Initializing a model from an array
- jsonSerialize() : array<string|int, mixed>
- setDevice() : static
- Setter for device
Properties
$device
The device to create
protected
DeviceCreationJob|null
$device
= null
Methods
from()
Initializing a model from an array
public
static from(array<string|int, mixed> $params) : static
Parameters
- $params : array<string|int, mixed>
-
Pass this parameter if you want to initial property value from an array. See API reference for all property names and types
Tags
Return values
static —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setDevice()
Setter for device
public
setDevice(DeviceCreationJob $device) : static
Parameters
- $device : DeviceCreationJob
-
The device to create
Return values
static —To use in method chains