<?php


namespace Mainto\RpcServer\Protocol\Request;



use Illuminate\Contracts\Support\Jsonable;
use Mainto\RpcServer\Util\IO\Writer;

interface Extend {
    const MagicNumUrlInvoke = 1;
    const MagicNumHeaderExtend = 2;

    public function magicNum ();

    public function checkParams();

    public function dumpToWriter(Writer $writer);

    public function toArray (): array;
}