original_string: public function exists($instance, string $method)
      {
          $reflection = new ReflectionClass(get_class($instance));
  
          return $reflection->hasMethod($method);
      }
code: public function exists($instance, string $method)
      {
          $reflection = new ReflectionClass(get_class($instance));
  
          return $reflection->hasMethod($method);
      }
code_tokens: public function exists ( $ instance , string $ method ) { $ reflection = new ReflectionClass ( get_class ( $ instance ) ) ; return $ reflection -> hasMethod ( $ method ) ; }
docstring: Checks whether a specific method is defined in a class
  
  @param mixed $instance
  @param string $method
  @return bool
docstring_tokens: Checks whether a specific method is defined in a class