/** * {@inheritdoc} */ public function normalize(NormalizerInterface $normalizer, $format = null, array $context = []) { return parent::normalize($normalizer, $format, $context) + ['maxlength' => $this->getValue()]; }
/** * {@inheritdoc} */ public function __construct(array $options = []) { parent::__construct($options); $this->min = $options['min']; }
/** * @param array $options */ public function __construct(array $options = []) { parent::__construct($options); $this->constraints = ['min' => $this->createMin($options), 'max' => $this->createMax($options)]; }
/** * {@inheritdoc} */ public function __construct(array $options = []) { parent::__construct($options); $this->pattern = $options['pattern']; }
/** * {@inheritdoc} */ public function __construct(array $options = []) { parent::__construct($options); $this->type = $options['type']; }