Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | public function __construct(string $action) |
||
31 | { |
||
32 | switch ($action) { |
||
33 | case self::PARK: |
||
34 | case self::RETRY: |
||
35 | case self::SKIP: |
||
36 | break; |
||
37 | default: |
||
38 | throw new \InvalidArgumentException(sprintf('%s is an invalid message action.', $action)); |
||
39 | } |
||
40 | $this->action = $action; |
||
41 | } |
||
42 | } |
||
43 |