Property | Type | Description | |
---|---|---|---|
$attribute | string | Attribute to target condition | |
$operator | Operator | ||
$sensorId | string | Sensor Id | |
$value | string | Value to match |
Method | Description | |
---|---|---|
__construct ( stdClass $condition = null ) | Construct a condition object | |
changed ( ) : self | Set operator to changed | |
equals ( ) : self | Set operator to equals | |
export ( ) : stdClass | Export for API request | |
getAttribute ( ) : string | Get attribute | |
getOperator ( ) : string | Get operator | |
getSensorId ( ) : string | Get sensor Id | |
getValue ( ) : string | Get value | |
greaterThan ( ) : self | Set operator to greater than | |
import ( stdClass $condition ) : self | Import from API response | |
lessThan ( ) : self | Set operator to less than | |
setAttribute ( string $attribute ) : self | Set attribute to target condition | |
setOperator ( string $operator ) : self | Set operator | |
setSensorId ( mixed $sensorId ) : self | Set sensor Id | |
setValue ( string $value ) : self | Set value to match |
public __construct ( stdClass $condition = null ) | ||
$condition | stdClass | Condition attributes |
public export ( ) : stdClass | ||
return | stdClass | Result object |
public greaterThan ( ) : self | ||
return | self | This object |
public import ( stdClass $condition ) : self | ||
$condition | stdClass | Condition values |
return | self | This object |
public lessThan ( ) : self | ||
return | self | This object |
public setAttribute ( string $attribute ) : self | ||
$attribute | string | Attribute |
return | self | This object |
public setOperator ( string $operator ) : self | ||
$operator | string | Operator |
return | self | This object |
public setSensorId ( mixed $sensorId ) : self | ||
$sensorId | mixed | Sensor Id or Sensor object |
return | self | This object |
protected string $attribute | ||
return | string |