You are here

class CallbackValidatorTest_Object in Plug 7

Hierarchy

Expanded class hierarchy of CallbackValidatorTest_Object

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 30

Namespace

Symfony\Component\Validator\Tests\Constraints
View 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