You are here

class CallbackValidatorTest_Object in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/CallbackValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest_Object

Hierarchy

Expanded class hierarchy of CallbackValidatorTest_Object

File

vendor/symfony/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