public static function overrideMimeType($mimetype){ if(!is_string($mimetype)){ throw new Exception("expected string"); } self::$mimetype = $mimetype; }