Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | abstract class QueueEvent implements StoppableEventInterface |
||
10 | { |
||
11 | protected array $payload; |
||
12 | |||
13 | 4 | public static function occur(array $payload): self |
|
14 | { |
||
15 | 4 | $self = new static(); |
|
16 | 4 | $self->payload = $payload; |
|
17 | |||
18 | 4 | return $self; |
|
19 | } |
||
20 | |||
21 | public function payload(): array |
||
22 | { |
||
23 | return $this->payload; |
||
24 | } |
||
25 | |||
26 | public function isPropagationStopped(): bool |
||
29 | } |
||
30 | } |
||
31 |