Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class PostDeletedCommentsIEvent extends ApplicationInboundEvent |
||
9 | { |
||
10 | const EVENT_NAME = "POST_DELETED"; |
||
11 | |||
12 | private Ulid $id; |
||
13 | |||
14 | /** |
||
15 | * @param array $data |
||
16 | */ |
||
17 | 3 | public function __construct(array $data) |
|
18 | { |
||
19 | 3 | parent::__construct($data); |
|
20 | 3 | $this->id = $this->ulid('id'); |
|
21 | 3 | } |
|
22 | |||
23 | |||
24 | /** |
||
25 | * @return Ulid |
||
26 | */ |
||
27 | 2 | public function getId(): Ulid |
|
30 | } |
||
31 | |||
32 | 1 | ||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public static function getName(): string |
||
39 | } |
||
40 | } |