/** * {@inheritdoc} */ public function __construct($name) { parent::__construct($name); $this->addRule(new FloatRule()); }
/** * {@inheritdoc} */ public function __construct($name) { parent::__construct($name); $this->addRules([new MaxValueCountRule(1), new BooleanRule()]); }
/** * {@inheritdoc} */ public function __construct($name) { parent::__construct($name); $this->addRules([new FloatRule(), new MinValueRule(-180), new MaxValueRule(180)]); }
/** * {@inheritdoc} */ public function __construct($name) { parent::__construct($name); $this->addRule(new DateStringRule()); }