Total Complexity | 4 |
Total Lines | 36 |
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=fastlyServiceId,enableSoftPurge=fastlyEnableSofrPurge") |
||
23 | */ |
||
24 | public function __construct( |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @throws ApiException |
||
36 | * |
||
37 | * @see https://developer.fastly.com/reference/api/purging/ |
||
38 | */ |
||
39 | public function __invoke(string $tag): void |
||
54 |