| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | final class SymfonyScoper implements Scoper |
||
| 28 | { |
||
| 29 | private SymfonyXmlScoper $decoratedScoper; |
||
| 30 | |||
| 31 | public function __construct( |
||
| 32 | Scoper $decoratedScoper, |
||
| 33 | string $prefix, |
||
| 34 | EnrichedReflector $enrichedReflector, |
||
| 35 | SymbolsRegistry $symbolsRegistry |
||
| 36 | ) { |
||
| 37 | $this->decoratedScoper = new SymfonyXmlScoper( |
||
| 38 | new SymfonyYamlScoper( |
||
| 39 | $decoratedScoper, |
||
| 40 | $prefix, |
||
| 41 | $enrichedReflector, |
||
| 42 | $symbolsRegistry, |
||
| 43 | ), |
||
| 44 | $prefix, |
||
| 45 | $enrichedReflector, |
||
| 46 | $symbolsRegistry, |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Scopes PHP files. |
||
| 52 | * |
||
| 53 | * @throws PhpParserError |
||
| 54 | */ |
||
| 55 | public function scope(string $filePath, string $contents): string |
||
| 58 | } |
||
| 59 | } |
||
| 60 |