original_string: final public function typehintMethod($class, string $method, array $custom = [])
      {
          $className = get_class($class);
  
          $reflectionMethod = new ReflectionMethod($className, $method);
  
          $reflectionParameters = $reflectionMethod->getParameters();
  
          $params = $this->resolveParams($reflectionParameters, $custom);
  
          return call_user_func_array(
              [
                  $class,
                  $method
              ],
              $params
          );
      }
code: final public function typehintMethod($class, string $method, array $custom = [])
      {
          $className = get_class($class);
  
          $reflectionMethod = new ReflectionMethod($className, $method);
  
          $reflectionParameters = $reflectionMethod->getParameters();
  
          $params = $this->resolveParams($reflectionParameters, $custom);
  
          return call_user_func_array(
              [
                  $class,
                  $method
              ],
              $params
          );
      }
code_tokens: final public function typehintMethod ( $ class , string $ method , array $ custom = [ ] ) { $ className = get_class ( $ class ) ; $ reflectionMethod = new ReflectionMethod ( $ className , $ method ) ; $ reflectionParameters = $ reflectionMethod -> getParameters ( ) ; $ params = $ this -> resolveParams ( $ reflectionParameters , $ custom ) ; return call_user_func_array ( [ $ class , $ method ] , $ params ) ; }
docstring: Typehint a class method.
docstring_tokens: Typehint a class method .