Replace DatasourceInterface with Selectable

This commit is contained in:
Eric Lippmann 2014-04-15 17:43:45 +02:00
parent 1a2577dd47
commit e525688383
2 changed files with 16 additions and 14 deletions

View File

@ -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();
}

View 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();
}