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/ValidatorInterface.php
2010-10-02 12:42:35 +02:00

31 lines
852 B
PHP

<?php
namespace Symfony\Component\Validator;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
use Symfony\Component\Validator\Constraint;
/**
* Validates a given value.
*
* @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
* @version SVN: $Id: ValidatorInterface.php 138 2010-01-18 22:05:14Z flo $
*/
interface ValidatorInterface
{
public function validate($object, $groups = null);
public function validateProperty($object, $property, $groups = null);
public function validatePropertyValue($class, $property, $value, $groups = null);
public function validateValue($value, Constraint $constraint, $groups = null);
}