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