You are here

public function SensorResultInterface::setPreviousResult in Monitoring 8

Sets the previous sensor result.

Parameters

\Drupal\monitoring\Entity\SensorResultDataInterface|null $previous_result: A SensorResultEntity representing the previous sensor result to set. NULL if there is no previous result.

1 method overrides SensorResultInterface::setPreviousResult()
SensorResult::setPreviousResult in src/Result/SensorResult.php
Sets the previous sensor result.

File

src/Result/SensorResultInterface.php, line 208
Contains \Drupal\monitoring\Result\SensorResultInterface.

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

public function setPreviousResult(SensorResultDataInterface $previous_result = NULL);