ConstraintViolationAssertion
класс ConstraintViolationAssertion
Методы
| __construct(ExecutionContextInterface $context, $message, Constraint $constraint = null, array $assertions = array()) | ||
| atPath($path) | ||
| setParameter($key, $value) | ||
| setParameters(array $parameters) | ||
| setTranslationDomain($translationDomain) | ||
| setInvalidValue($invalidValue) | ||
| setPlural($number) | ||
| setCode($code) | ||
| setCause($cause) | ||
| buildNextViolation($message) | ||
| assertRaised() |
Подробности
__construct(ExecutionContextInterface $context, $message, Constraint $constraint = null, array $assertions = array())
Параметры
| ExecutionContextInterface | $context | |
| $message | ||
| Constraint | $constraint | |
| array | $assertions |
atPath($path)
Параметры
| $path |
setParameter($key, $value)
Параметры
| $key | ||
| $value |
setParameters(array $parameters)
Параметры
| array | $parameters |
setTranslationDomain($translationDomain)
Параметры
| $translationDomain |
setInvalidValue($invalidValue)
Параметры
| $invalidValue |
setPlural($number)
Параметры
| $number |
setCode($code)
Параметры
| $code |
setCause($cause)
Параметры
| $cause |
buildNextViolation($message)
Параметры
| $message |
assertRaised()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Validator/Test/ConstraintViolationAssertion.html