Phue\Command\CreateSensor::stateAttribute PHP Method

stateAttribute() public method

State attribute
public stateAttribute ( string $key, mixed $value ) : self
$key string Key
$value mixed Value
return self This object
    public function stateAttribute($key, $value)
    {
        $this->state[$key] = $value;
        return $this;
    }