blob: cdf9b0dc86ec70db1e3bf73c344bb40ca87efd7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace Icinga\Module\Director\CheckPlugin;
class CheckResult
{
protected $state;
protected $output;
public function __construct($output, $state = 0)
{
if ($state instanceof PluginState) {
$this->state = $state;
} else {
$this->state = new PluginState($state);
}
$this->output = $output;
}
public function getState()
{
return $this->state;
}
public function getOutput()
{
return $this->output;
}
}
|