mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
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
19
library/Icinga/Data/Queryable.php
Normal file
19
library/Icinga/Data/Queryable.php
Normal file
@ -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…
x
Reference in New Issue
Block a user