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

namespace Icinga\Data;

use Icinga\Data\Filter\Filter;
use Icinga\Exception\StatementException;

/**
 * Interface for data deletion
 */
interface Reducible
{
    /**
     * Delete entries in the given target, optionally limiting the affected entries by using a filter
     *
     * @param   string  $target
     * @param   Filter  $filter
     *
     * @throws  StatementException
     */
    public function delete($target, Filter $filter = null);
}