Skip to content

Commit 9cf2bc9

Browse files
committed
add count() method
1 parent 7862c47 commit 9cf2bc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Bounds.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ public function copy(self $bounds): self
4747

4848
return $this;
4949
}
50+
51+
public function count(): int
52+
{
53+
return count(range($this->start, $this->end));
54+
}
5055
}

0 commit comments

Comments
 (0)