src/Execution.php
public function setScope($scope)
    {
        $this->setState(self::STATE_SCOPE, $scope);
        
        if (!$scope) {
            $this->variables = [];
        }
        
        $this->markModified();
    }
public function setScope($scope)
    {
        $this->setState(self::STATE_SCOPE, $scope);
        
        if (!$scope) {
            $this->variables = [];
        }
        
        $this->markModified();
    }
Toggle scope of the execution.

@param boolean $scope