src/Utilities.php
public static function getCaller()
    {
        $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);
        if (isset($backtrace[2])) {
            $caller = '';
            if (isset($backtrace[2]['class'])) {
                $caller = $backtrace[2]['class'] . $backtrace[2]['type'];
            }
            $caller .= $backtrace[2]['function'];
            return $caller;
        }
        return '{null}';
    }
public static function getCaller()
    {
        $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3);
        if (isset($backtrace[2])) {
            $caller = '';
            if (isset($backtrace[2]['class'])) {
                $caller = $backtrace[2]['class'] . $backtrace[2]['type'];
            }
            $caller .= $backtrace[2]['function'];
            return $caller;
        }
        return '{null}';
    }
public static function getCaller ( ) { $ backtrace = debug_backtrace ( DEBUG_BACKTRACE_IGNORE_ARGS , 3 ) ; if ( isset ( $ backtrace [ 2 ] ) ) { $ caller = '' ; if ( isset ( $ backtrace [ 2 ] [ 'class' ] ) ) { $ caller = $ backtrace [ 2 ] [ 'class' ] . $ backtrace [ 2 ] [ 'type' ] ; } $ caller .= $ backtrace [ 2 ] [ 'function' ] ; return $ caller ; } return '{null}' ; }
Get caller class and method.

@return string Either returns the name of the class and method as a
string (either 'Class->method' or 'Class::staticMethod'), the name of the
function, '{closure}', or '{null}'.
Get caller class and method .