2014-04-15 10:23:17 -04:00
|
|
|
<?php
|
2016-02-08 09:41:00 -05:00
|
|
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2014-04-15 10:23:17 -04:00
|
|
|
|
|
|
|
|
namespace Icinga\Data;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface for specifying data sources
|
|
|
|
|
*/
|
|
|
|
|
interface Queryable
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Set the target and fields to query
|
|
|
|
|
*
|
2025-11-20 07:44:24 -05:00
|
|
|
* @param string $target
|
|
|
|
|
* @param ?array $fields
|
2014-04-15 10:23:17 -04:00
|
|
|
*
|
2025-11-20 07:44:24 -05:00
|
|
|
* @return Fetchable
|
2014-04-15 10:23:17 -04:00
|
|
|
*/
|
2025-11-20 07:44:24 -05:00
|
|
|
public function from($target, ?array $fields = null);
|
2014-04-15 10:23:17 -04:00
|
|
|
}
|