private function getReflectionMethodForRoute(Route $route)
    {
        $class = $this->extractClassFromRoute($route);
        $method = $this->extractFunctionFromRoute($route);

        if ($class !== null && $method !== null) {
            return new \ReflectionMethod($class, $method);
        }
        return null;
    }
private function getReflectionMethodForRoute(Route $route)
    {
        $class = $this->extractClassFromRoute($route);
        $method = $this->extractFunctionFromRoute($route);

        if ($class !== null && $method !== null) {
            return new \ReflectionMethod($class, $method);
        }
        return null;
    }
private function getReflectionMethodForRoute ( Route $ route ) { $ class = $ this -> extractClassFromRoute ( $ route ) ; $ method = $ this -> extractFunctionFromRoute ( $ route ) ; if ( $ class !== null && $ method !== null ) { return new \ ReflectionMethod ( $ class , $ method ) ; } return null ; }
Returns the ReflectionMethod class for a route.
@param $route Route
@return null|\ReflectionMethod
Returns the ReflectionMethod class for a route .