public function render()
{
$methodDocumentation = $this->buildMethodDocumentation($this->fullOriginalClassName, $this->methodName);
$callParentMethodCode = $this->buildCallParentMethodCode($this->fullOriginalClassName, $this->methodName);
$staticKeyword = $this->reflectionService->isMethodStatic($this->fullOriginalClassName, $this->methodName) ? 'static ' : '';
$code = '';
if ($this->addedPreParentCallCode !== '' || $this->addedPostParentCallCode !== '') {
$argumentsCode = count($this->reflectionService->getMethodParameters($this->fullOriginalClassName, $this->methodName)) > 0 ? ' $arguments = func_get_args();' . "\n" : '';
$code = "\n" . $methodDocumentation . ' ' . $staticKeyword . "public function __construct()\n {\n" . $argumentsCode . $this->addedPreParentCallCode . $callParentMethodCode . $this->addedPostParentCallCode . " }\n";
}
return $code;
}