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