Air-Quality-Web/logic/Repositories/ISensorRepository.php
Starbeamrainbowlabs a325940322
Implement new ISensorRepository.
This is thanks to @BNNorman's recent DB changes :D
2019-07-18 21:19:16 +01:00

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;
}