public function __construct(string $name = "") { parent::__construct($name); $this->addRule(new \sndsgd\form\rule\FloatRule()); }
public function __construct(string $name, ValueField $keyField, FieldInterface $valueField) { parent::__construct($name); $this->keyField = $keyField->setParent($this); $this->valueField = $valueField->setParent($this); }