Create a apir of interfaces for the repositories
parent
ec8e3363d1
commit
bbd08b439e
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 $?;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace AirQuality\Repositories;
|
||||
|
||||
interface IMeasurementDataRepository {
|
||||
public function get_readings_by_date(DateTime $datetime, string $reading_type);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace AirQuality\Repositories;
|
||||
|
||||
interface IMeasurementTypeRepository {
|
||||
public function is_valid_type();
|
||||
public function get_all_types();
|
||||
}
|
Loading…
Reference in New Issue