cache = $cache; } public function setDebug($debug) { if(is_callable($debug)) { $this->debug = $debug; } else { $this->debug = true; } } }