mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-04-14 13:36:13 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
22 lines
428 B
PHP
22 lines
428 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
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);
|
|
}
|