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;
    }
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;
    }
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 ; }
Helper method to generate the code to initialize a bean.

@param string $padding
@param string $beanId
@param string $methodParams
@param BeanPostProcessorsProperty $postProcessorsProperty
@return string
Helper method to generate the code to initialize a bean .