1 | <?php |
||
19 | class SftpMonitoring extends AbstractMonitoring |
||
20 | { |
||
21 | private $addr; |
||
22 | private $port; |
||
23 | private $login; |
||
24 | private $password; |
||
25 | /** |
||
26 | * @param array $config |
||
27 | * @param String $name |
||
28 | */ |
||
29 | public function __construct($config, $name) |
||
37 | /** |
||
38 | * Check solr ping url. |
||
39 | * @return metric 0 KO, 1 OK |
||
40 | */ |
||
41 | public function getMetric() |
||
56 | /** |
||
57 | * @return string "None" |
||
58 | */ |
||
59 | public function getUnit() |
||
63 | /** |
||
64 | * @return integer 1 |
||
65 | */ |
||
66 | public function getAlarms() |
||
74 | } |
||
75 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.