/** * Set this to true and debug messages will be logged/output * * @static * @param boolean */ static function setDebug($bool) { if ($bool) { self::$debug = true; } else { self::$debug = false; } }