public function getContent() {
        $class = new \PhpParser\Node\Stmt\Class_($this->targetClass);
        $this->extendClass($class);
        $ast = array_merge($this->ast, array($class));
        $code = fphp\Helper\PhpParser::astToString($ast);
        return new fphp\File\TextFileContent($code);
    }