/** * Turn on/off the debugging setting * * @param string $bool * @return void */ public static function debug($bool = null) { if ($bool !== null) { self::$_debug = (bool) $bool; } return self::$_debug; }