original_string: public static function isValidKey($key) {
          if(!is_string($key)) {
              throw EnumerationException::invalidKeyType(gettype($key));
          }
  
          return array_key_exists($key, self::toArray());
      }
code: public static function isValidKey($key) {
          if(!is_string($key)) {
              throw EnumerationException::invalidKeyType(gettype($key));
          }
  
          return array_key_exists($key, self::toArray());
      }
code_tokens: public static function isValidKey ( $ key ) { if ( ! is_string ( $ key ) ) { throw EnumerationException :: invalidKeyType ( gettype ( $ key ) ) ; } return array_key_exists ( $ key , self :: toArray ( ) ) ; }
docstring: Determines that the given key is exist in the current enumeration or not.
  
  @param string $key
  
  @return bool
  
  @throws \BuildR\Utils\Enumeration\Exception\EnumerationException
docstring_tokens: Determines that the given key is exist in the current enumeration or not .