<?php

declare(strict_types=1);

namespace PHPMax\Protocol;

class OutboundFrame
{
     
    public $ver;
     
    public $opcode;
     
    public $cmd;
     
    public $seq;
     
    public $payload;

    


    public function __construct(int $ver, int $opcode, int $seq, ?array $payload = null, int $cmd = Command::REQUEST)
    {
        $this->ver = $ver;
        $this->opcode = $opcode;
        $this->cmd = $cmd;
        $this->seq = $seq;
        $this->payload = $payload;
    }
}

