Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class UnRequeueableMessage implements UnRequeueableMessageInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $id; |
||
13 | |||
14 | /** |
||
15 | * @var mixed |
||
16 | */ |
||
17 | private $message; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $reason; |
||
23 | |||
24 | public function __construct($message, string $reason = '') |
||
25 | { |
||
26 | $this->id = Uuid::uuid4()->toString(); |
||
27 | $this->message = $message; |
||
28 | $this->reason = $reason; |
||
29 | } |
||
30 | |||
31 | public function getId(): string |
||
32 | { |
||
33 | return $this->id; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function getMessage() |
||
42 | } |
||
43 | |||
44 | public function getReason(): string |
||
49 |