Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->addRule(new FloatRule());
 }
Beispiel #2
0
 /**
  * {@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)]);
 }
Beispiel #4
0
 /**
  * {@inheritdoc}
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->addRule(new DateStringRule());
 }