PhpSandbox\ValidatorVisitor::__construct PHP Method

__construct() public method

This constructor takes a passed PHPSandbox instance to check against for validating sandboxed code.
public __construct ( PHPSandbox $sandbox )
$sandbox PHPSandbox The PHPSandbox instance to check against
    public function __construct(PHPSandbox $sandbox)
    {
        $this->sandbox = $sandbox;
    }