| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class JsonAssetExporter implements AssetExporterInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string The full path to the target JSON file. |
||
| 20 | */ |
||
| 21 | private string $targetFile; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $targetFile The full path to the target JSON file. |
||
| 25 | */ |
||
| 26 | 5 | public function __construct(string $targetFile) |
|
| 29 | 5 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritDoc} |
||
| 33 | * |
||
| 34 | * @throws JsonException If an error occurred during JSON encoding of asset bundles. |
||
| 35 | * @throws RuntimeException If an error occurred while writing to the JSON file. |
||
| 36 | */ |
||
| 37 | 4 | public function export(array $assetBundles): void |
|
| 42 |