protected function getExecutorMethod($methodName, ReflectionClass $endpointReflector) {
        $neededMethod = strtolower($methodName) . "Executor";

        if(!$endpointReflector->hasMethod($neededMethod)) {
            $neededMethod = "defaultExecutor";
        }

        return $endpointReflector->getMethod($neededMethod);
    }
protected function getExecutorMethod($methodName, ReflectionClass $endpointReflector) {
        $neededMethod = strtolower($methodName) . "Executor";

        if(!$endpointReflector->hasMethod($neededMethod)) {
            $neededMethod = "defaultExecutor";
        }

        return $endpointReflector->getMethod($neededMethod);
    }
protected function getExecutorMethod ( $ methodName , ReflectionClass $ endpointReflector ) { $ neededMethod = strtolower ( $ methodName ) . "Executor" ; if ( ! $ endpointReflector -> hasMethod ( $ neededMethod ) ) { $ neededMethod = "defaultExecutor" ; } return $ endpointReflector -> getMethod ( $ neededMethod ) ; }
Return the reflector of the method that can execute the query on the
endpoint.

@param string $methodName Like "query"
@param \ReflectionClass $endpointReflector

@return \ReflectionMethod
Return the reflector of the method that can execute the query on the endpoint .