<?php

declare(strict_types=1);

namespace PHPMax\Protocol;

class InboundFrame
{
     
    public $opcode;
     
    public $cmd;
     
    public $seq;
     
    public $payload;
     
    public $raw;

    



    public function __construct(int $opcode, int $cmd = 0, ?int $seq = null, ?array $payload = null, ?array $raw = null)
    {
        $this->opcode = $opcode;
        $this->cmd = $cmd;
        $this->seq = $seq;
        $this->payload = $payload;
        $this->raw = $raw;
    }
}

