Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | final class AfterIndexItemEvent |
||
28 | { |
||
29 | /** |
||
30 | * @var Item |
||
31 | */ |
||
32 | private Item $item; |
||
33 | |||
34 | /** |
||
35 | * @var IndexQueueWorkerTask|null |
||
36 | */ |
||
37 | private ?IndexQueueWorkerTask $task; |
||
38 | |||
39 | private string $runId; |
||
40 | |||
41 | /** |
||
42 | * @param Item $item |
||
43 | * @param IndexQueueWorkerTask|null $task |
||
44 | * @param string $runId |
||
45 | */ |
||
46 | public function __construct(Item $item, ?IndexQueueWorkerTask $task, string $runId) |
||
47 | { |
||
48 | $this->item = $item; |
||
49 | $this->task = $task; |
||
50 | $this->runId = $runId; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return Item |
||
55 | */ |
||
56 | public function getItem(): Item |
||
57 | { |
||
58 | return $this->item; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return IndexQueueWorkerTask|null |
||
63 | */ |
||
64 | public function getTask(): ?IndexQueueWorkerTask |
||
65 | { |
||
66 | return $this->task; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getRunId(): string |
||
75 | } |
||
76 | } |
||
77 |