original_string: public static function getValue($key)
      {
          $className = get_called_class();
          $reflectionClass = new ReflectionClass($className);
  
          if (! $reflectionClass->hasConstant($key)) {
              return static::DEFAULT_VALUE;
          }
  
          return $reflectionClass->getConstant($key);
      }
code: public static function getValue($key)
      {
          $className = get_called_class();
          $reflectionClass = new ReflectionClass($className);
  
          if (! $reflectionClass->hasConstant($key)) {
              return static::DEFAULT_VALUE;
          }
  
          return $reflectionClass->getConstant($key);
      }
code_tokens: public static function getValue ( $ key ) { $ className = get_called_class ( ) ; $ reflectionClass = new ReflectionClass ( $ className ) ; if ( ! $ reflectionClass -> hasConstant ( $ key ) ) { return static :: DEFAULT_VALUE ; } return $ reflectionClass -> getConstant ( $ key ) ; }
docstring: Returns an enum value by its key.
  
  @return mixed
docstring_tokens: Returns an enum value by its key .