public function withVariable(Variable $variable) : Scope { $scope = clone $this; $scope->addVariable($variable); return $scope; }