public function sample()
{
$file = new PhpFile();
$class = $file->addClass('name\\space\\Sample');
$class->addProperty('string')->addComment('@var string String');
$class->addMethod('get')->addComment('Return string')->addComment('')->addComment('@return string')->setBody('return $this->?;', ['string']);
$class->addMethod('set')->addComment('Set string')->addComment('')->addComment('@param string $string String')->addComment('@return $this')->setBody('$this->string = $string;' . PHP_EOL . 'return $this;')->addParameter('string');
file_put_contents('tmp/origin/Nette.php', (string) $file);
}