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/src/Symfony/Component/Validator/ConstraintValidatorFactoryInterface.php

28 lines
709 B
PHP
Raw Normal View History

<?php
2010-10-02 11:42:31 +01:00
/*
* This file is part of the Symfony package.
2010-10-02 11:42:31 +01:00
*
* (c) Fabien Potencier <fabien@symfony.com>
2010-10-02 11:42:31 +01:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2010-10-02 11:42:31 +01:00
*/
namespace Symfony\Component\Validator;
/**
* Specifies an object able to return the correct ConstraintValidatorInterface
2013-11-20 18:57:15 +00:00
* instance given a Constraint object.
*/
interface ConstraintValidatorFactoryInterface
{
/**
2012-06-14 12:25:16 +01:00
* Given a Constraint, this returns the ConstraintValidatorInterface
* object that should be used to verify its validity.
*
* @return ConstraintValidatorInterface
*/
2012-07-09 13:50:58 +01:00
public function getInstance(Constraint $constraint);
2010-10-02 11:42:31 +01:00
}