original_string: protected function createValidators(array $validators) {
          $this->availableValidators = [];
          foreach ($validators as $name => $type) {
              $class                            = '\\Valdi\\Validator\\'.$type;
              $this->availableValidators[$name] = new $class();
          }
      }
code: protected function createValidators(array $validators) {
          $this->availableValidators = [];
          foreach ($validators as $name => $type) {
              $class                            = '\\Valdi\\Validator\\'.$type;
              $this->availableValidators[$name] = new $class();
          }
      }
code_tokens: protected function createValidators ( array $ validators ) { $ this -> availableValidators = [ ] ; foreach ( $ validators as $ name => $ type ) { $ class = '\\Valdi\\Validator\\' . $ type ; $ this -> availableValidators [ $ name ] = new $ class ( ) ; } }
docstring: Creates instances of the available validators.
  
  @param array $validators
  the validators to load, key = name, value = classname within the
  namespace "\Valdi\Validator"
docstring_tokens: Creates instances of the available validators .