Skip to content

Commit 8157f36

Browse files
committed
add getSelectedBounds method
1 parent 2f5650e commit 8157f36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CodeSnippet.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ public function getLineNumbers(): array
147147
return array_keys($this->getLines());
148148
}
149149

150+
public function getSelectedBounds(): Bounds
151+
{
152+
return Bounds::create($this->getLineNumberStart(), $this->getLineNumberEnd());
153+
}
154+
150155
public function toString()
151156
{
152157
$result = '';

0 commit comments

Comments
 (0)