Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
59 | private function validatePayload(array $payload) : void |
||
60 | { |
||
61 | if (empty($payload['error']['class'])) { |
||
62 | throw new InvalidArgumentException('The notification error.class field is required'); |
||
63 | } |
||
64 | |||
65 | if (empty($payload['notifier']['name'])) { |
||
66 | throw new InvalidArgumentException('The notification notifier.name field is required'); |
||
67 | } |
||
70 |