This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Validator/Fixtures/ConstraintAValidator.php

19 lines
450 B
PHP

<?php
namespace Symfony\Tests\Component\Validator\Fixtures;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class ConstraintAValidator extends ConstraintValidator
{
public function isValid($value, Constraint $constraint)
{
if ('VALID' != $value) {
$this->setMessage('message', array('param' => 'value'));
return false;
}
return true;
}
}