Add interface "Queryable" (WIP)
Interface for classes which act as a data source and thus return or are a Fetchable. The name of the interface is not yet final though.
This commit is contained in:
parent
0f3d70c437
commit
659e6f774e
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Data;
|
||||
|
||||
/**
|
||||
* Interface for specifying data sources
|
||||
*/
|
||||
interface Queryable
|
||||
{
|
||||
/**
|
||||
* Set the target and fields to query
|
||||
*
|
||||
* @param string $target
|
||||
* @param array $fields
|
||||
*
|
||||
* @return Fetchable
|
||||
*/
|
||||
public function from($target, array $fields = null);
|
||||
}
|
Loading…
Reference in New Issue