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