mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Replace DatasourceInterface with Selectable
This commit is contained in:
parent
1a2577dd47
commit
e525688383
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
// TODO: create interface instead of abstract class
|
||||
namespace Icinga\Data;
|
||||
|
||||
interface DatasourceInterface
|
||||
{
|
||||
/**
|
||||
* Instantiate a Query object
|
||||
*
|
||||
* @return BaseQuery
|
||||
*/
|
||||
public function select();
|
||||
}
|
16
library/Icinga/Data/Selectable.php
Normal file
16
library/Icinga/Data/Selectable.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Data;
|
||||
|
||||
/**
|
||||
* Interface for classes providing a data source to fetch data from
|
||||
*/
|
||||
interface Selectable
|
||||
{
|
||||
/**
|
||||
* Provide a data source to fetch data from
|
||||
*
|
||||
* @return Queryable
|
||||
*/
|
||||
public function select();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user