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();
|
||||
}
|
|
@ -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…
Reference in New Issue