Total Complexity | 1 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class SuperCacheInvalidationEvent |
||
9 | { |
||
10 | use Dispatchable; |
||
11 | use SerializesModels; |
||
|
|||
12 | |||
13 | /** |
||
14 | * The cache identifier type ('key' or 'tag'). |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | public string $type; |
||
19 | |||
20 | /** |
||
21 | * The cache key or tag that was invalidated. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public string $identifier; |
||
26 | |||
27 | /** |
||
28 | * The reason for invalidation. |
||
29 | * |
||
30 | * @var string|null |
||
31 | */ |
||
32 | public ?string $reason; |
||
33 | |||
34 | /** |
||
35 | * Create a new event instance. |
||
36 | * |
||
37 | * @param string $type Identifier type ('key' or 'tag') |
||
38 | * @param string $identifier The cache key or tag |
||
39 | * @param string|null $reason Reason for invalidation |
||
40 | */ |
||
41 | public function __construct(string $type, string $identifier, ?string $reason = null) |
||
48 |