Create a apir of interfaces for the repositories

This commit is contained in:
Starbeamrainbowlabs 2019-01-14 21:43:45 +00:00
parent ec8e3363d1
commit bbd08b439e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 16 additions and 1 deletions

2
build
View file

@ -100,7 +100,7 @@ function task_database {
sleep 1; sleep 1;
mysql --host 127.0.0.1 --port 3306 --database "${database_name}" --user "${USER}" --password; 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 $?; task_end $?;
} }

View file

@ -0,0 +1,7 @@
<?php
namespace AirQuality\Repositories;
interface IMeasurementDataRepository {
public function get_readings_by_date(DateTime $datetime, string $reading_type);
}

View file

@ -0,0 +1,8 @@
<?php
namespace AirQuality\Repositories;
interface IMeasurementTypeRepository {
public function is_valid_type();
public function get_all_types();
}