Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
58 | 21 | public function __construct($type, $action, $options = []) |
|
59 | { |
||
60 | 21 | if (!isset(self::$validTypes[$type])) { |
|
61 | 1 | throw new \Exception(sprintf('Invalid action type: %s', $type)); |
|
62 | } |
||
63 | 20 | $this->type = $type; |
|
64 | 20 | $this->action = $action; |
|
65 | 20 | $this->options = $options; |
|
66 | 20 | } |
|
67 | |||
111 |