original_string: public static function getNameValue($name)
      {
          static::initialize();
  
          if (!static::isValidName($name)) {
              throw new \InvalidArgumentException(sprintf(
                  'The enum name "%s" is not valid. Expected one of: %s',
                  $name,
                  implode(', ', static::names())
              ));
          }
  
          return static::$constants[static::$lcKeyMap[strtolower($name)]];
      }
code: public static function getNameValue($name)
      {
          static::initialize();
  
          if (!static::isValidName($name)) {
              throw new \InvalidArgumentException(sprintf(
                  'The enum name "%s" is not valid. Expected one of: %s',
                  $name,
                  implode(', ', static::names())
              ));
          }
  
          return static::$constants[static::$lcKeyMap[strtolower($name)]];
      }
code_tokens: public static function getNameValue ( $ name ) { static :: initialize ( ) ; if ( ! static :: isValidName ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The enum name "%s" is not valid. Expected one of: %s' , $ name , implode ( ', ' , static :: names ( ) ) ) ) ; } return static :: $ constants [ static :: $ lcKeyMap [ strtolower ( $ name ) ] ] ; }
docstring: Get the enum value from its name.
  
  @param string $name
  @return mixed
docstring_tokens: Get the enum value from its name .