original_string: public static function getNameForValue($value)
      {
          foreach (self::getConstants() as $constant) {
              if ($constant['value'] === $value) {
                  return $constant['name'];
              }
          }
          return false;
      }
code: public static function getNameForValue($value)
      {
          foreach (self::getConstants() as $constant) {
              if ($constant['value'] === $value) {
                  return $constant['name'];
              }
          }
          return false;
      }
code_tokens: public static function getNameForValue ( $ value ) { foreach ( self :: getConstants ( ) as $ constant ) { if ( $ constant [ 'value' ] === $ value ) { return $ constant [ 'name' ] ; } } return false ; }
docstring: Get the descriptive name for the given value.
  
  @param int|string $value The value to get the name of a constant for.
  @return bool|string
docstring_tokens: Get the descriptive name for the given value .