Lines Matching refs:start
10 * An immutable inclusive interval start..stop (both start and stop included).
15 public $start;
20 public function __construct(int $start, int $stop)
22 $this->start = $start;
35 return $item >= $this->start && $item <= $this->stop;
40 return $this->stop - $this->start + 1;
50 && $this->start === $other->start
55 * Does this start completely before other? Disjoint.
59 return $this->start < $other->start && $this->stop < $other->start;
63 * Does this start at or before other? Nondisjoint.
67 return $this->start <= $other->start && $this->stop >= $other->start;
71 * Does this.a start after other.b? May or may not be disjoint.
75 return $this->start > $other->start;
79 * Does this start completely after other? Disjoint.
83 return $this->start > $other->stop;
87 * Does this start after other? NonDisjoint
92 return $this->start > $other->start && $this->start <= $other->stop;
108 return $this->start === $other->stop + 1 || $this->stop === $other->start - 1;
116 return new self(\min($this->start, $other->start), \max($this->stop, $other->stop));
124 return new self(\max($this->start, $other->start), \min($this->stop, $other->stop));
129 if ($this->start === $this->stop) {
130 return (string) $this->start;
133 return $this->start . '..' . $this->stop;