class CallbackValidatorTest_Object in Plug 7
Hierarchy
- class \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest_Object
Expanded class hierarchy of CallbackValidatorTest_Object
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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 |