original_string: public static function getErrorName($errorCode)
      {
          if (!isset(static::$errorNames[$errorCode])) {
              throw new InvalidArgumentException(sprintf('The error code "%s" does not exist for constraint of type "%s".', $errorCode, \get_called_class()));
          }
  
          return static::$errorNames[$errorCode];
      }
code: public static function getErrorName($errorCode)
      {
          if (!isset(static::$errorNames[$errorCode])) {
              throw new InvalidArgumentException(sprintf('The error code "%s" does not exist for constraint of type "%s".', $errorCode, \get_called_class()));
          }
  
          return static::$errorNames[$errorCode];
      }
code_tokens: public static function getErrorName ( $ errorCode ) { if ( ! isset ( static :: $ errorNames [ $ errorCode ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The error code "%s" does not exist for constraint of type "%s".' , $ errorCode , \ get_called_class ( ) ) ) ; } return static :: $ errorNames [ $ errorCode ] ; }
docstring: Returns the name of the given error code.
  
  @param string $errorCode The error code
  
  @return string The name of the error code
  
  @throws InvalidArgumentException If the error code does not exist
docstring_tokens: Returns the name of the given error code .