original_string: protected function validateInitializer()
      {
          if ($this->renderer === null) {
              $settingsInstance = $this->getSettingsInstance();
  
              if ($this->type === static::TYPE_EXCEL) {
                  $initializerClass = $settingsInstance->getDefaultExcelInitializerClass();
              } elseif ($this->type === static::TYPE_PDF) {
                  $initializerClass = $settingsInstance->getDefaultPDFInitializerClass();
              } else {
                  $initializerClass = $settingsInstance->getDefaultInitializerClass();
              }
  
              $this->initializer = new $initializerClass;
          }
      }
code: protected function validateInitializer()
      {
          if ($this->renderer === null) {
              $settingsInstance = $this->getSettingsInstance();
  
              if ($this->type === static::TYPE_EXCEL) {
                  $initializerClass = $settingsInstance->getDefaultExcelInitializerClass();
              } elseif ($this->type === static::TYPE_PDF) {
                  $initializerClass = $settingsInstance->getDefaultPDFInitializerClass();
              } else {
                  $initializerClass = $settingsInstance->getDefaultInitializerClass();
              }
  
              $this->initializer = new $initializerClass;
          }
      }
code_tokens: protected function validateInitializer ( ) { if ( $ this -> renderer === null ) { $ settingsInstance = $ this -> getSettingsInstance ( ) ; if ( $ this -> type === static :: TYPE_EXCEL ) { $ initializerClass = $ settingsInstance -> getDefaultExcelInitializerClass ( ) ; } elseif ( $ this -> type === static :: TYPE_PDF ) { $ initializerClass = $ settingsInstance -> getDefaultPDFInitializerClass ( ) ; } else { $ initializerClass = $ settingsInstance -> getDefaultInitializerClass ( ) ; } $ this -> initializer = new $ initializerClass ; } }
docstring: Construct an initializer from setting defaults, if none has been provided.
  
  @return void
docstring_tokens: Construct an initializer from setting defaults if none has been provided .