mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-29 07:23:00 +00:00
22 lines
624 B
PHP
22 lines
624 B
PHP
<?php
|
|
|
|
namespace AirQuality\Repositories;
|
|
|
|
/**
|
|
* Defines the interface of repositories that fetch information about sensors.
|
|
*/
|
|
interface ISensorRepository {
|
|
/**
|
|
* Returns an array of all the different types of sensor that devices can
|
|
* have.
|
|
* @return array An array of sensors.
|
|
*/
|
|
public function get_all_sensors();
|
|
|
|
/**
|
|
* Returns a list of sensors that a given device posesses.
|
|
* @param int $device_id The id of the device to return a list of sensors for.
|
|
* @return array An array of sensors that the device with the given id has.
|
|
*/
|
|
public function get_device_sensors(int $device_id) : array;
|
|
}
|