| 1 | <?php |
||
| 13 | final class SourceContext implements SourceContextInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Must be local stream. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $filename; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $filename |
||
| 24 | */ |
||
| 25 | public function __construct(string $filename) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function getFilename(): string |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function getSource(): string |
||
| 45 | } |