<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; class Number extends AbstractField { protected function setup() { $this->addVariables(array('autoColor' => false, 'signShow' => false, 'unit' => null)); } public function autoColor($mdHu1) { $this->setVariable('autoColor', $mdHu1); return $this; } public function signShow($mdHu1) { $this->setVariable('signShow', $mdHu1); return $this; } public function unit($mdHu1) { $this->setVariable('unit', $mdHu1); return $this; } public function unserializeValue($mdHu1, AbstractField $Mk6lP) { if ('' === $mdHu1 || null === $mdHu1) { return null; } return intval($mdHu1); } public function serializeValue($mdHu1, $DRh9Q) { if ('' === $mdHu1 || null === $mdHu1) { return null; } return intval($mdHu1); } public function prepareInput($mdHu1, $DRh9Q) { if ('' === $mdHu1 || null === $mdHu1) { return null; } return intval($mdHu1); } }