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\Tests\Fixtures;
14 use Symfony\Component\Validator\ConstraintViolationList;
15 use Symfony\Component\Validator\GlobalExecutionContextInterface;
16 use Symfony\Component\Validator\ValidationVisitorInterface;
19 * @author Bernhard Schussek <bschussek@gmail.com>
21 * @deprecated since version 2.5, to be removed in 3.0
23 class StubGlobalExecutionContext implements GlobalExecutionContextInterface
29 public function __construct($root = null, ValidationVisitorInterface $visitor = null)
31 $this->violations = new ConstraintViolationList();
33 $this->visitor = $visitor;
36 public function getViolations()
38 return $this->violations;
41 public function setRoot($root)
46 public function getRoot()
51 public function setVisitor(ValidationVisitorInterface $visitor)
53 $this->visitor = $visitor;
56 public function getVisitor()
58 return $this->visitor;
61 public function getValidatorFactory()
65 public function getMetadataFactory()