Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class WebpackAssetExporter implements AssetExporterInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string The full path to the target JavaScript file. |
||
21 | */ |
||
22 | private string $targetFile; |
||
23 | |||
24 | /** |
||
25 | * @param string $targetFile The full path to the target JavaScript file. |
||
26 | */ |
||
27 | 3 | public function __construct(string $targetFile) |
|
28 | { |
||
29 | 3 | $this->targetFile = $targetFile; |
|
30 | 3 | } |
|
31 | |||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | * |
||
35 | * @throws RuntimeException If an error occurred while writing to the JavaScript file. |
||
36 | */ |
||
37 | 3 | public function export(array $assetBundles): void |
|
46 | 2 | } |
|
47 | } |
||
48 |