示例#1
0
 public function __construct(string $name = "")
 {
     parent::__construct($name);
     $this->addRule(new \sndsgd\form\rule\FloatRule());
 }
示例#2
0
文件: MapField.php 项目: sndsgd/form
 public function __construct(string $name, ValueField $keyField, FieldInterface $valueField)
 {
     parent::__construct($name);
     $this->keyField = $keyField->setParent($this);
     $this->valueField = $valueField->setParent($this);
 }