ok = $ok; $this->checker = $checker; } /** * Destructor */ public function __destruct() { $this->checker = null; } /** * Returns true if the response is OK * * @return boolean */ public function isOk() { return $this->ok; } /** * Returns the message attached to the check, in case the response is bad * * @return string */ public function getMessage(TranslatorInterface $translator) { return $this->checker->getMessage($translator); } /** * Returns the attached Checker * * @return CheckerInterface */ public function getChecker() { return $this->checker; } }