31 lines
852 B
PHP
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);
|
|
} |