original_string: public static function getOption($name)
      {
          // Convert
          $constantName = self::getOptionName($name);
  
          if (!\defined($constantName)) {
              throw new LdapException(sprintf('Unknown option "%s".', $name));
          }
  
          return \constant($constantName);
      }
code: public static function getOption($name)
      {
          // Convert
          $constantName = self::getOptionName($name);
  
          if (!\defined($constantName)) {
              throw new LdapException(sprintf('Unknown option "%s".', $name));
          }
  
          return \constant($constantName);
      }
code_tokens: public static function getOption ( $ name ) { // Convert $ constantName = self :: getOptionName ( $ name ) ; if ( ! \ defined ( $ constantName ) ) { throw new LdapException ( sprintf ( 'Unknown option "%s".' , $ name ) ) ; } return \ constant ( $ constantName ) ; }
docstring: Fetches an option's corresponding constant value from an option name.
  The option name can either be in snake or camel case.
  
  @param string $name
  
  @return int
  
  @throws LdapException
docstring_tokens: Fetches an option s corresponding constant value from an option name . The option name can either be in snake or camel case .