mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-06-01 12:30:10 +02:00
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.
20 lines
323 B
PHP
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);
|
|
}
|