コード例 #1
0
ファイル: FloatField.php プロジェクト: sndsgd/form
 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);
 }