2019-01-14 21:43:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace AirQuality\Repositories;
|
|
|
|
|
|
|
|
interface IMeasurementTypeRepository {
|
2019-01-15 15:46:24 +00:00
|
|
|
/**
|
|
|
|
* Returns whether the specified type is valid or not.
|
|
|
|
* @param string $type_name The name of the type to validate.
|
2019-01-15 17:02:24 +00:00
|
|
|
* @return bool Whether the specified type name is valid or not.
|
2019-01-15 15:46:24 +00:00
|
|
|
*/
|
2019-01-15 17:02:24 +00:00
|
|
|
public function is_valid_type(string $type_name) : bool;
|
2019-01-15 15:46:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the friendly name for the specified type name.
|
|
|
|
* @param string $type_name The type name to get the friendly name for.
|
|
|
|
* @return string The friendly name for the specified type name.
|
|
|
|
*/
|
2019-01-15 15:58:23 +00:00
|
|
|
public function get_friendly_name(string $type_name) : string;
|
2019-01-15 15:46:24 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns all the currently known meeasurement types.
|
|
|
|
* @return array All the measurement types currently known.
|
|
|
|
*/
|
2019-01-14 21:43:45 +00:00
|
|
|
public function get_all_types();
|
|
|
|
}
|