original_string: public static function toConstant($value)
      {
          if (false !== ($_index = array_search($value, static::getDefinedConstants()))) {
              return $_index;
          }
  
          throw new \InvalidArgumentException('The value "' . $value . '" has no associated constant.');
      }
code: public static function toConstant($value)
      {
          if (false !== ($_index = array_search($value, static::getDefinedConstants()))) {
              return $_index;
          }
  
          throw new \InvalidArgumentException('The value "' . $value . '" has no associated constant.');
      }
code_tokens: public static function toConstant ( $ value ) { if ( false !== ( $ _index = array_search ( $ value , static :: getDefinedConstants ( ) ) ) ) { return $ _index ; } throw new \ InvalidArgumentException ( 'The value "' . $ value . '" has no associated constant.' ) ; }
docstring: Given a VALUE, return the associated CONSTANT
  
  @param string $value
  
  @return string
docstring_tokens: Given a VALUE return the associated CONSTANT