Lines Matching defs:stop
10 * An immutable inclusive interval start..stop (both start and stop included).
18 public $stop;
20 public function __construct(int $start, int $stop)
23 $this->stop = $stop;
35 return $item >= $this->start && $item <= $this->stop;
40 return $this->stop - $this->start + 1;
51 && $this->stop === $other->stop;
59 return $this->start < $other->start && $this->stop < $other->start;
67 return $this->start <= $other->start && $this->stop >= $other->start;
83 return $this->start > $other->stop;
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) {
133 return $this->start . '..' . $this->stop;