You are here

public function SensorResult::setValue in Monitoring 7

Same name and namespace in other branches
  1. 8 src/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::setValue()

Sets sensor value.

Parameters

mixed $value:

Overrides SensorResultInterface::setValue

File

lib/Drupal/monitoring/Result/SensorResult.php, line 355
Contains \Drupal\monitoring\Result\SensorResult.

Class

SensorResult
Generic container for the sensor result.

Namespace

Drupal\monitoring\Result

Code

public function setValue($sensor_value) {
  $this
    ->setResultData('sensor_value', $sensor_value);
}