protected function _createReflectionForCallable($callable)
    {
        $callable = $this->_normalizeCallable($callable);

        // String or closure means function
        if (is_string($callable) || ($callable instanceof Closure)) {
            return $this->_createReflectionFunction($callable);
        }

        // Otherwise array, which means method
        $object = $callable[0];
        $class  = is_string($object) ? $object : get_class($object);
        $method = $callable[1];

        return $this->_createReflectionMethod($class, $method);
    }
protected function _createReflectionForCallable($callable)
    {
        $callable = $this->_normalizeCallable($callable);

        // String or closure means function
        if (is_string($callable) || ($callable instanceof Closure)) {
            return $this->_createReflectionFunction($callable);
        }

        // Otherwise array, which means method
        $object = $callable[0];
        $class  = is_string($object) ? $object : get_class($object);
        $method = $callable[1];

        return $this->_createReflectionMethod($class, $method);
    }
protected function _createReflectionForCallable ( $ callable ) { $ callable = $ this -> _normalizeCallable ( $ callable ) ; // String or closure means function if ( is_string ( $ callable ) || ( $ callable instanceof Closure ) ) { return $ this -> _createReflectionFunction ( $ callable ) ; } // Otherwise array, which means method $ object = $ callable [ 0 ] ; $ class = is_string ( $ object ) ? $ object : get_class ( $ object ) ; $ method = $ callable [ 1 ] ; return $ this -> _createReflectionMethod ( $ class , $ method ) ; }
Creates a reflection for the given callable.

@since [*next-version*]

@param callable|Stringable|array $callable The callable, or an object that represents a function FQN, or a
callable-like array where the method is stringable.

@throws InvalidArgumentException If the callable type is invalid.
@throws OutOfRangeException      If the callable format is wrong.
@throws ReflectionException      If a reflection could not be created.

@return ReflectionFunction|ReflectionMethod The reflection.
Creates a reflection for the given callable .