/** * Setter for the logging enabled field. * * @param bool $enabled */ public static function setLoggingEnabled($enabled) { actionLogger::$loggingEnabled = (bool) $enabled; }