public function getNamespace()
{
$namespaces = array();
$namespace = $this->getGenerator()->getOptionNamespacePrefix();
if (empty($namespace)) {
if ($this->getGenerator()->getOptionPrefix() !== '') {
$namespaces[] = $this->getGenerator()->getOptionPrefix();
} elseif ($this->getGenerator()->getOptionSuffix() !== '') {
$namespaces[] = $this->getGenerator()->getOptionSuffix();
}
} else {
$namespaces[] = $namespace;
}
if ($this->getSubDirectory() !== '') {
$namespaces[] = $this->getSubDirectory();
}
return implode('\\', $namespaces);
}