Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class PHPString implements SourceInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | 4 | private $string; |
|
17 | |||
18 | 4 | public function __construct(string $string) |
|
19 | 4 | { |
|
20 | $this->string = $string; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param array $context |
||
25 | * |
||
26 | 4 | * @return TextInterface[] |
|
27 | */ |
||
28 | 4 | public function toTexts(array $context): iterable |
|
42 | } |
||
43 | } |
||
44 |