You are here

public function StubGlobalExecutionContext::__construct in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/StubGlobalExecutionContext.php, line 33

Class

StubGlobalExecutionContext
@since 2.5.3

Namespace

Symfony\Component\Validator\Tests\Fixtures

Code

public function __construct($root = null, ValidationVisitorInterface $visitor = null) {
  $this->violations = new ConstraintViolationList();
  $this->root = $root;
  $this->visitor = $visitor;
}