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