/** * If enabled and an exception occures, an email with the contents of this * exception will be emailed to debug email. * * @param bool $enable */ public static function setDebug($enable = true) { self::$debug = (bool) $enable; }