protected function isSwooleQueuePacket($packet)
    {
        if (! is_string($packet)) {
            return false;
        }

        $decoded = json_decode($packet, true);

        return JSON_ERROR_NONE === json_last_error() && isset($decoded['job']);
    }
protected function isSwooleQueuePacket($packet)
    {
        if (! is_string($packet)) {
            return false;
        }

        $decoded = json_decode($packet, true);

        return JSON_ERROR_NONE === json_last_error() && isset($decoded['job']);
    }
protected function isSwooleQueuePacket ( $ packet ) { if ( ! is_string ( $ packet ) ) { return false ; } $ decoded = json_decode ( $ packet , true ) ; return JSON_ERROR_NONE === json_last_error ( ) && isset ( $ decoded [ 'job' ] ) ; }
Indicates if a packet is swoole's queue job.

@param mixed
Indicates if a packet is swoole s queue job .