class CallbackValidatorTest_Object in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/CallbackValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest_Object
Hierarchy
- class \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest_Object
Expanded class hierarchy of CallbackValidatorTest_Object
File
- vendor/
symfony/ validator/ Tests/ Constraints/ CallbackValidatorTest.php, line 30
Namespace
Symfony\Component\Validator\Tests\ConstraintsView source
class CallbackValidatorTest_Object {
public function validate(ExecutionContextInterface $context) {
$context
->addViolation('My message', array(
'{{ value }}' => 'foobar',
));
return false;
}
public static function validateStatic($object, ExecutionContextInterface $context) {
$context
->addViolation('Static message', array(
'{{ value }}' => 'baz',
));
return false;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CallbackValidatorTest_Object:: |
public | function | ||
CallbackValidatorTest_Object:: |
public static | function |