Air-Quality-Web/logic/Actions/FetchData.php

22 lines
392 B
PHP

<?php
namespace AirQuality\Actions;
class FetchData {
private $settings;
private $validator;
public function __construct(
\SBRL\TomlConfig $in_settings) {
$this->settings = $in_settings;
$this->validator = new \AirQuality\Validator($_GET);
}
public function handle() {
$this->validator->is_datetime("datetime");
$this->validator->run();
echo("Params valid!");
}
}