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 52ce7bc commit c26360fCopy full SHA for c26360f
src/CodeSnippet.php
@@ -142,6 +142,11 @@ public function getLineNumberEnd(): int
142
return $this->surroundingLines[count($this->surroundingLines) - 1] ?? 0;
143
}
144
145
+ public function getLineNumbers(): array
146
+ {
147
+ return array_keys($this->getLines());
148
+ }
149
+
150
public function toString()
151
{
152
$result = '';
0 commit comments