protected function callContextChanged(string $type, $before, $after): bool
    {
        $before = is_object($before) ? get_class($before) : "";
        $after = is_object($after) ? get_class($after) : "";

        return $type === Caller::TYPE_CALLER && $before && $after && $before !== $after;
    }
protected function callContextChanged(string $type, $before, $after): bool
    {
        $before = is_object($before) ? get_class($before) : "";
        $after = is_object($after) ? get_class($after) : "";

        return $type === Caller::TYPE_CALLER && $before && $after && $before !== $after;
    }
protected function callContextChanged ( string $ type , $ before , $ after ) : bool { $ before = is_object ( $ before ) ? get_class ( $ before ) : "" ; $ after = is_object ( $ after ) ? get_class ( $ after ) : "" ; return $ type === Caller :: TYPE_CALLER && $ before && $ after && $ before !== $ after ; }
Compares the type against the before and after results to determine if a call from the "methods"
type changed the context before the next middleware class could access it.

@param string $type
@param mixed $before
@param mixed $after
@return bool
Compares the type against the before and after results to determine if a call from the methods type changed the context before the next middleware class could access it .