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/Components/Validator/Constraints/Choice.php

32 lines
791 B
PHP
Raw Normal View History

<?php
namespace Symfony\Components\Validator\Constraints;
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Choice extends \Symfony\Components\Validator\Constraint
{
public $choices;
public $callback;
public $multiple = false;
public $min = null;
public $max = null;
public $message = 'Symfony.Validator.Choice.message';
public $minMessage = 'Symfony.Validator.Choice.minMessage';
public $maxMessage = 'Symfony.Validator.Choice.maxMessage';
/**
* {@inheritDoc}
*/
public function defaultOption()
{
return 'choices';
}
}