Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->max = $options['max'];
 }
Ejemplo n.º 2
0
 /**
  * @param array $options
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->constraints = ['min' => $this->createMin($options), 'max' => $this->createMax($options)];
 }
Ejemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->pattern = $options['pattern'];
 }
Ejemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->type = $options['type'];
 }