public static function isStopMessage($message, $adminCookie, &$privileged)
    {
        if ($message instanceof StopMessage) {
            $privileged = $adminCookie !== null && $message->getCookie() === $adminCookie;

            return true;
        } elseif ($message instanceof stdClass && isset($message->_stop_)) {
            $privileged = $adminCookie !== null && $message->_stop_ === $adminCookie;

            return true;
        } elseif (is_array($message) && isset($message['_stop_'])) {
            $privileged = $adminCookie !== null && $message['_stop_'] === $adminCookie;

            return true;
        } else {
            return false;
        }
    }
public static function isStopMessage($message, $adminCookie, &$privileged)
    {
        if ($message instanceof StopMessage) {
            $privileged = $adminCookie !== null && $message->getCookie() === $adminCookie;

            return true;
        } elseif ($message instanceof stdClass && isset($message->_stop_)) {
            $privileged = $adminCookie !== null && $message->_stop_ === $adminCookie;

            return true;
        } elseif (is_array($message) && isset($message['_stop_'])) {
            $privileged = $adminCookie !== null && $message['_stop_'] === $adminCookie;

            return true;
        } else {
            return false;
        }
    }
@param mixed       $message
@param string|null $adminCookie
@param bool        $privileged

@return bool