mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
Create a apir of interfaces for the repositories
This commit is contained in:
parent
ec8e3363d1
commit
bbd08b439e
3 changed files with 16 additions and 1 deletions
2
build
2
build
|
@ -100,7 +100,7 @@ function task_database {
|
|||
sleep 1;
|
||||
mysql --host 127.0.0.1 --port 3306 --database "${database_name}" --user "${USER}" --password;
|
||||
|
||||
kill $!; wait; sleep 0.5;
|
||||
kill "${ssh_pid}"; wait; sleep 0.5;
|
||||
task_end $?;
|
||||
}
|
||||
|
||||
|
|
7
logic/Repositories/IMeasurementDataRepository.php
Normal file
7
logic/Repositories/IMeasurementDataRepository.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace AirQuality\Repositories;
|
||||
|
||||
interface IMeasurementDataRepository {
|
||||
public function get_readings_by_date(DateTime $datetime, string $reading_type);
|
||||
}
|
8
logic/Repositories/IMeasurementTypeRepository.php
Normal file
8
logic/Repositories/IMeasurementTypeRepository.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace AirQuality\Repositories;
|
||||
|
||||
interface IMeasurementTypeRepository {
|
||||
public function is_valid_type();
|
||||
public function get_all_types();
|
||||
}
|
Loading…
Reference in a new issue