original_string: public static function fromName($name)
      {
          $names = static::getNames();
          if (array_key_exists($name, $names)) {
              return new static($name, $names[$name]);
          }
          throw new \InvalidArgumentException("No enum constant '$name' in class " . get_called_class());
      }
code: public static function fromName($name)
      {
          $names = static::getNames();
          if (array_key_exists($name, $names)) {
              return new static($name, $names[$name]);
          }
          throw new \InvalidArgumentException("No enum constant '$name' in class " . get_called_class());
      }
code_tokens: public static function fromName ( $ name ) { $ names = static :: getNames ( ) ; if ( array_key_exists ( $ name , $ names ) ) { return new static ( $ name , $ names [ $ name ] ) ; } throw new \ InvalidArgumentException ( "No enum constant '$name' in class " . get_called_class ( ) ) ; }
docstring: Gets the enum instance for the name
  
  @return Enum
docstring_tokens: Gets the enum instance for the name