<?php

namespace Tool\LoadTemplate\Logic;

use Tool\LoadTemplate\ILogic;
use Game\Constant\ConstTemplate\TemplateIntegral;

class IntegralLogic extends ILogic
{
    public function dealKey($key, $val, &$title): bool
    {
        $title [$key] = $val;
        return true;
    }

    /**
     * @param $row
     * @return bool
     * 需要字段转为int
     */
    public function dealRow(&$row): bool
    {
        $row[TemplateIntegral::BpNum] = intval($row[TemplateIntegral::BpNum]);
        $row[TemplateIntegral::BpType] = intval($row[TemplateIntegral::BpType]);
        return true;
    }

    public function dealFile(&$file): bool
    {
        return true;
    }

    public function getTidyList(): array
    {
        return array();
    }
}