Ejemplo n.º 1
0
 /**
  * Returns the parameters that may be used in a validation message.
  *
  * @return array
  */
 protected function getMessageParameters()
 {
     $quote = function ($value) {
         return '"' . $value . '"';
     };
     return array_merge(parent::getMessageParameters(), ['values' => implode(', ', array_map($quote, $this->array))]);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['allowEmpty' => $this->allowEmpty, 'callback' => $this->getCallbackAsString($this->allowEmptyCallback)]);
 }
Ejemplo n.º 3
0
 /**
  * Returns the parameters that may be used in a validation message.
  *
  * @return array
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['length' => $this->length]);
 }
Ejemplo n.º 4
0
 /**
  * Returns the parameters that may be used in a validation message.
  *
  * @return array
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['max' => $this->max]);
 }
Ejemplo n.º 5
0
 /**
  * @return array
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['schemes' => implode(', ', $this->schemes)]);
 }
Ejemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['required' => $this->required, 'callback' => $this->getCallbackAsString($this->requiredCallback)]);
 }
Ejemplo n.º 7
0
 /**
  * Returns the parameters that may be used in a validation message.
  *
  * @return array
  */
 protected function getMessageParameters()
 {
     return array_merge(parent::getMessageParameters(), ['testvalue' => $this->value]);
 }