public function generateDocumentClass(ClassMetadataInfo $metadata)
{
$placeHolders = array('<namespace>', '<imports>', '<documentAnnotation>', '<documentClassName>', '<documentBody>');
$replacements = array($this->generateDocumentNamespace($metadata), $this->generateDocumentImports(), $this->generateDocumentDocBlock($metadata), $this->generateDocumentClassName($metadata), $this->generateDocumentBody($metadata));
$code = str_replace($placeHolders, $replacements, self::$classTemplate);
return str_replace('<spaces>', $this->spaces, $code);
}