1 | <?php |
||
5 | final class MessageAction |
||
6 | { |
||
7 | /** |
||
8 | * Adds the message to the park queue. |
||
9 | */ |
||
10 | const PARK = 'Park'; |
||
11 | |||
12 | /** |
||
13 | * Retry the message. |
||
14 | */ |
||
15 | const RETRY = 'Retry'; |
||
16 | |||
17 | /** |
||
18 | * Forget about the message. |
||
19 | */ |
||
20 | const SKIP = 'Skip'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $action; |
||
26 | |||
27 | /** |
||
28 | * @param string $action |
||
29 | */ |
||
30 | public function __construct(string $action) |
||
42 | } |
||
43 |