We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1b759 commit fc27e31Copy full SHA for fc27e31
src/IntervalSet.php
@@ -69,6 +69,16 @@ public function subtract(IntervalSet $set) : self
69
return self::subtractSets($this, $set);
70
}
71
72
+ public function orSet(IntervalSet $other) : self
73
+ {
74
+ $result = new self();
75
+
76
+ $result->addSet($this);
77
+ $result->addSet($other);
78
79
+ return $result;
80
+ }
81
82
/**
83
* Compute the set difference between two interval sets. The specific
84
* operation is `left - right`. If either of the input sets is `null`,
0 commit comments