* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Constraints; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\Exception\MissingOptionsException; /** * @Annotation * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) * * @author Bernhard Schussek */ class Count extends Constraint { const TOO_FEW_ERROR = 'bef8e338-6ae5-4caf-b8e2-50e7b0579e69'; const TOO_MANY_ERROR = '756b1212-697c-468d-a9ad-50dd783bb169'; protected static $errorNames = array( self::TOO_FEW_ERROR => 'TOO_FEW_ERROR', self::TOO_MANY_ERROR => 'TOO_MANY_ERROR', ); public $minMessage = 'This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.'; public $maxMessage = 'This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.'; public $exactMessage = 'This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.'; public $min; public $max; public function __construct($options = null) { if (null !== $options && !is_array($options)) { $options = array( 'min' => $options, 'max' => $options, ); } parent::__construct($options); if (null === $this->min && null === $this->max) { throw new MissingOptionsException(sprintf('Either option "min" or "max" must be given for constraint %s', __CLASS__), array('min', 'max')); } } } __halt_compiler();----SIGNATURE:----f05tnWhailnqeIWdwB1UrMpbQO7LhmIkM/I5YcWJcxtmw1biK/P34S3YxdziuJgttgMjvRAGnWVba6J1KZld63xnwK8cP13G9xGc6VMKNdTt5kA7ws2SDRh1uHKkPeGCp6zZkxkLX3alPCAP+gBybTzocMmwEfMxWQ/eddRYez0ytTioKU1UshVyODjh0QqAvGvW+rmITXXP2ivIj1OrAL2agh/Pk1nsOgHLAuP7hKSUIuvT/qtqf7NtOx0M8nMaRuLe7Kag0auiuKpZW8CSbSAUtOF9mbu5gK4ztVIwN7u2oGTwOFEAsoBfRaeGO8RSkOupg/3dqqAr5JNTUUDM35+FBDRSEOOrqXLOLMTjj/3Oe0TvbiLV107ZBfGI83jY6QPCcEAj87h44fzSb8fGs8oRrJk1JoHE4FxJQJtqczlQl6SvTV3NQjBEsFWyl6C2wovVc9UCW0ADRLK3MHA2uqb/V+/uY7JRm1cewrb/+BbVNU2lR3iMa8GW4v2zFrlOK64vVucDoOQkuuyWvKF4PUMjrpOUWnkzokXExCW9al1DU91NLoVehYSY2J5420kg+a12L+BBBAho58zyUKh7tIUHJDBulQVKjXnQwR/+4OuY+DxbP+zuB6RDWmyeSZP1bL9dS9jn8XikmUPfYVgw3uzk/BjLjBj/nPVK4IU4I/A=----ATTACHMENT:----NTkyMzIwMDM2MzUyMDEzNiAyMzkxNDE0NDU0OTU3NzEyIDM2MTg2NDkwOTU4Nzk5MzU=