original_string: protected function newValidator(ResourceConfiguration $config)
      {
          $class = $config->getValidatorClass();
  
          return $config->isUsingYamlValidation() ?
              new YamlResourceValidator($config->getYamlValidation()) : new $class();
      }
code: protected function newValidator(ResourceConfiguration $config)
      {
          $class = $config->getValidatorClass();
  
          return $config->isUsingYamlValidation() ?
              new YamlResourceValidator($config->getYamlValidation()) : new $class();
      }
code_tokens: protected function newValidator ( ResourceConfiguration $ config ) { $ class = $ config -> getValidatorClass ( ) ; return $ config -> isUsingYamlValidation ( ) ? new YamlResourceValidator ( $ config -> getYamlValidation ( ) ) : new $ class ( ) ; }
docstring: Checks the configuration to decide what validation class to use.
  
  @param ResourceConfiguration $config
  @return YamlResourceValidator|object
docstring_tokens: Checks the configuration to decide what validation class to use .