public static function getCalledMethod(\ReflectionFunctionAbstract $method, $closureInfo = true)
    {
        if ($method->isClosure()) {
            if ($closureInfo) {
                return sprintf(
                    'Closure [%s:%d]',
                    $method->getFileName(),
                    $method->getStartLine()
                );
            }

            return 'Closure';
        }

        if ($method instanceof \ReflectionMethod) {
            return sprintf(
                '%s::%s',
                $method->getDeclaringClass()->getName(),
                $method->getName()
            );
        }

        return $method->getName();
    }
public static function getCalledMethod(\ReflectionFunctionAbstract $method, $closureInfo = true)
    {
        if ($method->isClosure()) {
            if ($closureInfo) {
                return sprintf(
                    'Closure [%s:%d]',
                    $method->getFileName(),
                    $method->getStartLine()
                );
            }

            return 'Closure';
        }

        if ($method instanceof \ReflectionMethod) {
            return sprintf(
                '%s::%s',
                $method->getDeclaringClass()->getName(),
                $method->getName()
            );
        }

        return $method->getName();
    }
public static function getCalledMethod ( \ ReflectionFunctionAbstract $ method , $ closureInfo = true ) { if ( $ method -> isClosure ( ) ) { if ( $ closureInfo ) { return sprintf ( 'Closure [%s:%d]' , $ method -> getFileName ( ) , $ method -> getStartLine ( ) ) ; } return 'Closure' ; } if ( $ method instanceof \ ReflectionMethod ) { return sprintf ( '%s::%s' , $ method -> getDeclaringClass ( ) -> getName ( ) , $ method -> getName ( ) ) ; } return $ method -> getName ( ) ; }
Get called method from abstract reflection function

@param \ReflectionFunctionAbstract $method
@param bool                        $closureInfo

@return string
Get called method from abstract reflection function