Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class FastlyCachePurger implements PurgerInterface |
||
15 | { |
||
16 | private PurgeApi $purgeApi; |
||
17 | private string $fastlyServiceId; |
||
18 | private bool $enableSoftPurge; |
||
19 | |||
20 | /** |
||
21 | * @SuppressWarnings("PHPMD.BooleanArgumentFlag") |
||
22 | * @Named("fastlyServiceId=FASTLY_SERVICE_ID,enableSoftPurge=FASTLY_ENABLE_SOFT_PURGE") |
||
23 | */ |
||
24 | public function __construct( |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @throws ApiException |
||
36 | */ |
||
37 | public function __invoke(string $tag): void |
||
52 |