icingaweb2/library/Icinga/Data/Queryable.php
Eric Lippmann 659e6f774e 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.
2014-04-15 16:23:17 +02:00

20 lines
323 B
PHP

<?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);
}