Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| SourceString | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getSrcText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | namespace Wikimedia\Parsoid\Core; |
| 5 | |
| 6 | /** |
| 7 | * Represents the simplest possible Source: just a string, of unknown |
| 8 | * origin. Generally speaking we should use a more informative Source. |
| 9 | */ |
| 10 | class SourceString implements Source { |
| 11 | public function __construct( public string $srcText ) { |
| 12 | } |
| 13 | |
| 14 | public function getSrcText(): string { |
| 15 | return $this->srcText; |
| 16 | } |
| 17 | } |