<?php

namespace Test\Common;

use Framework\Logic\CommonDataLogic;
use Game\Constant\ModelTypeDefine;
use Test\TestBase;

class TestData extends TestBase
{
    use CommonDataLogic;

    public function getPlayerId(): int
    {
        return 0;
    }

    public function startTest()
    {
        $modelType = ModelTypeDefine::ACCOUNT;
        $index = 1;

        $ret = $this->getCommonData();
        var_dump($ret);

        $this->addCommonData($modelType, $index);

        $this->addCommonDataArr(array(2 =>2,3=>3));

        $ret = $this->getCommonData();
        var_dump($ret);

        $ret = $this->getCommonValueByModel($modelType);
        var_dump($ret);

        $ret = $this->getCommonValueByModel(0);
        var_dump($ret);
    }
}
