Issues (2963)

LibreNMS/Alert/Transport/Dummy.php (1 issue)

1
<?php
2
/* Copyright (C) 2014 Daniel Preussker <[email protected]>
3
 * This program is free software: you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation, either version 3 of the License, or
6
 * (at your option) any later version.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program.  If not, see <https://www.gnu.org/licenses/>. */
15
16
/**
17
 * Dummy Transport
18
 *
19
 * @author f0o <[email protected]>
20
 * @copyright 2014 f0o, LibreNMS
21
 * @license GPL
22
 */
23
24
namespace LibreNMS\Alert\Transport;
25
26
use LibreNMS\Alert\Transport;
27
28
class Dummy extends Transport
29
{
30
    public function deliverAlert($obj, $opts)
31
    {
32
        var_dump($obj);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($obj) looks like debug code. Are you sure you do not want to remove it?
Loading history...
33
34
        return true;
35
    }
36
37
    public function contactDummy()
38
    {
39
        return true;
40
    }
41
42
    public static function configTemplate()
43
    {
44
        return [
45
            'validation' => [],
46
            'config' => [],
47
        ];
48
    }
49
}
50