DataItem extends Model
Table of Contents
- $deviceId : string|null
- The device's identifier to replace (hexadecimal format)
- $targetDeviceId : string|null
- The target device's identifier (hexadecimal format)
- from() : static
- Initializing a model from an array
- getDeviceId() : string
- Getter for deviceId
- getTargetDeviceId() : string
- Getter for targetDeviceId
- jsonSerialize() : array<string|int, mixed>
- setDeviceId() : static
- Setter for deviceId
- setTargetDeviceId() : static
- Setter for targetDeviceId
Properties
$deviceId
The device's identifier to replace (hexadecimal format)
    protected
        string|null
    $deviceId
     = null
    
    
    
$targetDeviceId
The target device's identifier (hexadecimal format)
    protected
        string|null
    $targetDeviceId
     = 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 —getDeviceId()
Getter for deviceId
    public
                getDeviceId() : string
    
    
    
        Return values
string —The device's identifier to replace (hexadecimal format)
getTargetDeviceId()
Getter for targetDeviceId
    public
                getTargetDeviceId() : string
    
    
    
        Return values
string —The target device's identifier (hexadecimal format)
jsonSerialize()
    public
                jsonSerialize() : array<string|int, mixed>
    
    
    
    Tags
Return values
array<string|int, mixed> —setDeviceId()
Setter for deviceId
    public
                setDeviceId(string $deviceId) : static
    
        Parameters
- $deviceId : string
- 
                    The device's identifier to replace (hexadecimal format) 
Return values
static —To use in method chains
setTargetDeviceId()
Setter for targetDeviceId
    public
                setTargetDeviceId(string $targetDeviceId) : static
    
        Parameters
- $targetDeviceId : string
- 
                    The target device's identifier (hexadecimal format) 
Return values
static —To use in method chains