summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Data/Queryable.php
blob: 75cdc986e912caf6ee1b8840722f0cc97ac6beb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

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