priority = $priority; $this->checkName = $checksName; $this->logFile = $logFile; } /** * Performs check. * * @throws Exception If the check is not passed, a detailed error message should be set * inside the exception * * @return bool True on success */ abstract public function check(); abstract public function getSolution(); /** * Set the result for current check. Allowed values: * 1 (success) * 0 (warning) * -1 (failure) * * @param $result */ public function setResult($result) { // Allow only a set of results if(!in_array($result, array(1, 0, -1))) { return; } $this->result = $result; } public function getResult() { return $this->result; } public function getPriority() { return $this->priority; } public function getName() { return $this->checkName; } public function setLogFile($log) { $this->logFile = $log; } }