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