| Total Complexity | 5 | 
| Total Lines | 47 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 10 | class File implements SourceInterface  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | */  | 
            ||
| 15 | private $filePath;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * @var null|string  | 
            ||
| 19 | */  | 
            ||
| 20 | private $encoding;  | 
            ||
| 21 | |||
| 22 | 5 | public function __construct(string $filePath, ?string $encoding = null)  | 
            |
| 26 | 5 | }  | 
            |
| 27 | |||
| 28 | private function getFileContent(): string  | 
            ||
| 29 |     { | 
            ||
| 30 | 5 | return \Safe\file_get_contents($this->filePath);  | 
            |
| 31 | 1 | }  | 
            |
| 32 | 5 | ||
| 33 | 5 | public function toTexts(array $context = []): iterable  | 
            |
| 57 | ),  | 
            ||
| 58 | ];  | 
            ||
| 61 |