<?php
//accept the table name for ping monitoring to calculate
//should be created using HolderFactory
Final Class PingHolder extends Holder {
private $pingdef;
public function __construct($tableping){
parent::__construct($tableping);
$this->pingdef = new Ping();
$this->pingdef->selectByID($this->tablename);
}
public function getWarningThreshold(){
return $this->pingdef->getGreenLine();
}
public function getCriticalThreshold(){
return $this->pingdef->getRedLine();
}
}
?>