original_string: protected function getExecutorMethod($methodName, ReflectionClass $endpointReflector) {
          $neededMethod = strtolower($methodName) . "Executor";
  
          if(!$endpointReflector->hasMethod($neededMethod)) {
              $neededMethod = "defaultExecutor";
          }
  
          return $endpointReflector->getMethod($neededMethod);
      }
code: protected function getExecutorMethod($methodName, ReflectionClass $endpointReflector) {
          $neededMethod = strtolower($methodName) . "Executor";
  
          if(!$endpointReflector->hasMethod($neededMethod)) {
              $neededMethod = "defaultExecutor";
          }
  
          return $endpointReflector->getMethod($neededMethod);
      }
code_tokens: protected function getExecutorMethod ( $ methodName , ReflectionClass $ endpointReflector ) { $ neededMethod = strtolower ( $ methodName ) . "Executor" ; if ( ! $ endpointReflector -> hasMethod ( $ neededMethod ) ) { $ neededMethod = "defaultExecutor" ; } return $ endpointReflector -> getMethod ( $ neededMethod ) ; }
docstring: Return the reflector of the method that can execute the query on the
  endpoint.
  
  @param string $methodName Like "query"
  @param \ReflectionClass $endpointReflector
  
  @return \ReflectionMethod
docstring_tokens: Return the reflector of the method that can execute the query on the endpoint .