Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php namespace JobApis\JobsToMail\Http\Messages; |
||
27 | 14 | public function __construct($type = null, $message = null) |
|
28 | { |
||
29 | 14 | if ($type && in_array($type, $this->getTypes())) { |
|
30 | 13 | $this->type = $type; |
|
31 | 13 | $this->message = $message; |
|
32 | } else { |
||
33 | 1 | throw new \OutOfBoundsException("Invalid type {$type} specified."); |
|
34 | } |
||
35 | 13 | } |
|
36 | |||
50 |