<?php

namespace Tool\LoadTemplate\Logic;

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

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

    /**
     * @param $row
     * @return bool
     */
    public function dealRow(&$row): bool
    {
        $row[TemplateAppearance::Id] = (int)$row[TemplateAppearance::Id];
        $row[TemplateAppearance::IDUniversal] = (int)$row[TemplateAppearance::IDUniversal];
        $row[TemplateAppearance::IDByItem] = (int)$row[TemplateAppearance::IDByItem];
        $row[TemplateAppearance::Type] = (int)$row[TemplateAppearance::Type];
        return true;
    }

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

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