2014-04-15 10:23:17 -04:00
|
|
|
<?php
|
2026-03-26 12:46:27 -04:00
|
|
|
|
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
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
|
|
|
}
|