<?php
/**
 * Created by FFB.
 * Company: Shenzhen Zhixun Information Tec. Nanchang Com.
 * Copyright: ShenzhenZhixun
 * Email: eastbus@126.com
 * User: FFB
 * Date: 2025-03-11 12:09:31
 * 文件不允许修改，自动生成
 */

namespace common\table\bms_alarm;

class BmsState{
    public static function tableName()
    {
        return '{{bms_state}}';
    }
                
    /**
     * ------------ 字段 state_id 
     * ------------ 表字段注释: 
     */
    public function filterByStateId($val): self
    {
        $this->filterByColumn("state_id", $val);
        return $this;
    }

    public function setStateId($val): self
    {
        $this->setAttr("state_id", $val);
        return $this;
    }

    public function getStateId()
    {
        return $this->state_id ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 macid 
     * ------------ 表字段注释: è®¾å¤‡å·
     */
    public function filterByMacid($val): self
    {
        $this->filterByColumn("macid", $val);
        return $this;
    }

    public function setMacid($val): self
    {
        $this->setAttr("macid", $val);
        return $this;
    }

    public function getMacid()
    {
        return $this->macid ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 data 
     * ------------ 表字段注释: æ•°æ®
     */
    public function filterByData($val): self
    {
        $this->filterByColumn("data", $val);
        return $this;
    }

    public function setData($val): self
    {
        $this->setAttr("data", $val);
        return $this;
    }

    public function getData()
    {
        return $this->data ?? null;
    }
    // ---------------------------------------------
                
    /**
     * ------------ 字段 time 
     * ------------ 表字段注释: æ—¶é—´
     */
    public function filterByTime($val): self
    {
        $this->filterByColumn("time", $val);
        return $this;
    }

    public function setTime($val): self
    {
        $this->setAttr("time", $val);
        return $this;
    }

    public function getTime()
    {
        return $this->time ?? null;
    }
    // ---------------------------------------------
    
}
