| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class PatcherChain implements Patcher |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array<(callable(string, string, string): string)|Patcher> |
||
|
|
|||
| 13 | */ |
||
| 14 | private array $patchers; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param array<callable(string, string, string): string> $patchers |
||
| 18 | */ |
||
| 19 | public function __construct(array $patchers = []) |
||
| 22 | } |
||
| 23 | |||
| 24 | public function __invoke(string $filePath, string $prefix, string $contents): string |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @internal |
||
| 35 | * |
||
| 36 | * @return array<(callable(string, string, string): string)|Patcher> |
||
| 37 | */ |
||
| 38 | public function getPatchers(): array |
||
| 43 |