4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Validator\Constraints;
14 use Symfony\Component\Validator\Constraint;
18 * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
20 * @author Bernhard Schussek <bschussek@gmail.com>
22 class Valid extends Constraint
24 public $traverse = true;
26 public function __get($option)
28 if ('groups' === $option) {
29 // when this is reached, no groups have been configured
33 return parent::__get($option);
39 public function addImplicitGroupName($group)
41 if (null !== $this->groups) {
42 parent::addImplicitGroupName($group);