protected static function generateBeanCreationCode(string $padding, string $beanId, string $methodParams, BeanPostProcessorsProperty $postProcessorsProperty) : string
{
$content = $padding . '$instance = parent::' . $beanId . '(' . $methodParams . ');' . PHP_EOL;
$content .= $padding . 'if ($instance instanceof \\' . InitializedBean::class . ') {
' . PHP_EOL;
$content .= $padding . ' $instance->postInitialization();' . PHP_EOL;
$content .= $padding . '}' . PHP_EOL;
$content .= PHP_EOL;
$content .= $padding . 'foreach ($this->' . $postProcessorsProperty->getName() . ' as $postProcessor) {
' . PHP_EOL;
$content .= $padding . ' $postProcessor->postProcess($instance, "' . $beanId . '");' . PHP_EOL;
$content .= $padding . '}' . PHP_EOL;
return $content;
}