public function getReflectionMethod(string $controller)
    {
        $callable = $this->getClassAndMethod($controller);
        if (null === $callable) {
            return null;
        }

        list($class, $method) = $callable;

        try {
            return new \ReflectionMethod($class, $method);
        } catch (\ReflectionException $e) {
            // In case we can't reflect the controller, we just
            // ignore the route
        }
    }
public function getReflectionMethod(string $controller)
    {
        $callable = $this->getClassAndMethod($controller);
        if (null === $callable) {
            return null;
        }

        list($class, $method) = $callable;

        try {
            return new \ReflectionMethod($class, $method);
        } catch (\ReflectionException $e) {
            // In case we can't reflect the controller, we just
            // ignore the route
        }
    }
public function getReflectionMethod ( string $ controller ) { $ callable = $ this -> getClassAndMethod ( $ controller ) ; if ( null === $ callable ) { return null ; } list ( $ class , $ method ) = $ callable ; try { return new \ ReflectionMethod ( $ class , $ method ) ; } catch ( \ ReflectionException $ e ) { // In case we can't reflect the controller, we just // ignore the route } }
Returns the ReflectionMethod for the given controller string.

@param string $controller

@return \ReflectionMethod|null
Returns the ReflectionMethod for the given controller string .