setName($this->_getClassName()) ->setExtendedClass($this->_getClassName(true)); $fileGenerator = new FileGenerator(); if ($this->_useNamespace) { $fileGenerator->setNamespace($this->_getNameSpace()); } $fileGenerator->setClass($classGenerator); return $fileGenerator->generate(); } }