/** * 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))]); }
/** * {@inheritdoc} */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['allowEmpty' => $this->allowEmpty, 'callback' => $this->getCallbackAsString($this->allowEmptyCallback)]); }
/** * Validates the value according to this rule, and returns the result as a bool. * * @param string $key * @param Container $input * @return bool */ public function isValid($key, Container $input) { $this->values = $input->getArrayCopy(); return parent::isValid($key, $input); }
/** * Returns the parameters that may be used in a validation message. * * @return array */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['length' => $this->length]); }
/** * Returns the parameters that may be used in a validation message. * * @return array */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['max' => $this->max]); }
/** * @return array */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['schemes' => implode(', ', $this->schemes)]); }
/** * {@inheritdoc} */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['required' => $this->required, 'callback' => $this->getCallbackAsString($this->requiredCallback)]); }
/** * Returns the parameters that may be used in a validation message. * * @return array */ protected function getMessageParameters() { return array_merge(parent::getMessageParameters(), ['testvalue' => $this->value]); }