<?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($wvO30) { $this->setVariable('autoColor', $wvO30); return $this; } public function signShow($wvO30) { $this->setVariable('signShow', $wvO30); return $this; } public function unit($wvO30) { $this->setVariable('unit', $wvO30); return $this; } public function unserializeValue($wvO30, AbstractField $Lgjfa) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } public function serializeValue($wvO30, $w5oww) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } public function prepareInput($wvO30, $w5oww) { if ('' === $wvO30 || null === $wvO30) { return null; } return intval($wvO30); } }