src/XSD2PHP/src/com/mikebevz/xsd2php/Xsd2Php.php
public function saveClasses($dir, $createDirectory = false)
    {
        $this->setXmlSource($this->getXML()->saveXML());
        $this->savePhpFiles($dir, $createDirectory);
    }
public function saveClasses($dir, $createDirectory = false)
    {
        $this->setXmlSource($this->getXML()->saveXML());
        $this->savePhpFiles($dir, $createDirectory);
    }
Save generated classes to directory

@param string  $dir             Directory to save classes to
@param boolean $createDirectory [optional] Create directory, false by default

@return void