original_string: public static function validator (EntityStructure $entityStructure, $data)
      {
          switch (gettype($data)) {
              case 'array':
                  return new ArrayValidator($entityStructure, $data);
              default:
                  return false;
          }
      }
code: public static function validator (EntityStructure $entityStructure, $data)
      {
          switch (gettype($data)) {
              case 'array':
                  return new ArrayValidator($entityStructure, $data);
              default:
                  return false;
          }
      }
code_tokens: public static function validator ( EntityStructure $ entityStructure , $ data ) { switch ( gettype ( $ data ) ) { case 'array' : return new ArrayValidator ( $ entityStructure , $ data ) ; default : return false ; } }
docstring: Get validator matching for the given data type.
  
  @param EntityStructure $entityStructure
  @param mixed $data
  @return Validator|false
  @codeCoverageIgnore ignore due to the coverage issue in switches.
docstring_tokens: Get validator matching for the given data type .