You are here

function Sensor::__construct in Monitoring 7

Instantiates a sensor object.

Parameters

SensorInfo $info: Sensor info object.

1 call to Sensor::__construct()
TestSensor::__construct in test/lib/Drupal/monitoring_test/Sensor/Sensors/TestSensor.php
Instantiates a sensor object.
1 method overrides Sensor::__construct()
TestSensor::__construct in test/lib/Drupal/monitoring_test/Sensor/Sensors/TestSensor.php
Instantiates a sensor object.

File

lib/Drupal/monitoring/Sensor/Sensor.php, line 29
Contains \Drupal\monitoring\Sensor\Sensor.

Class

Sensor
Abstract SensorInterface implementation with common behaviour.

Namespace

Drupal\monitoring\Sensor

Code

function __construct(SensorInfo $info) {
  $this->info = $info;
}