aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/scssphp/source-span/src/SourceSpanWithContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/scssphp/source-span/src/SourceSpanWithContext.php')
-rw-r--r--vendor/scssphp/source-span/src/SourceSpanWithContext.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/scssphp/source-span/src/SourceSpanWithContext.php b/vendor/scssphp/source-span/src/SourceSpanWithContext.php
new file mode 100644
index 000000000..383a6c7c2
--- /dev/null
+++ b/vendor/scssphp/source-span/src/SourceSpanWithContext.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace SourceSpan;
+
+/**
+ * An interface that describes a segment of source text with additional context.
+ */
+interface SourceSpanWithContext extends SourceSpan
+{
+ /**
+ * Text around the span, which includes the line containing this span.
+ */
+ public function getContext(): string;
+
+ public function subspan(int $start, ?int $end = null): SourceSpanWithContext;
+}