/** * Sets the xml file to parse * @param string $file * @return void */ public static function setXmlFile($file) { if (!is_file($file)) { throw new Exception('MimeType XML file does not exist.'); } self::$file = realpath($file); }