public function generate()
{
foreach ($this->elementStorage->getFunctions() as $name => $reflectionFunction) {
$template = $this->templateFactory->createForReflection($reflectionFunction);
$template = $this->loadTemplateWithParameters($template, $reflectionFunction);
$template->save();
$this->onGenerateProgress();
}
}