feat(demo): add story 1 — Sorano: Rock and Time
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user