| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function __construct($httpCode, array $headers, array $body = []) |
||
| 43 | { |
||
| 44 | Util::throwIfNotType(['int' => $httpCode, 'array' => $headers]); |
||
| 45 | |||
| 46 | if ($httpCode < 100 || $httpCode > 600) { |
||
| 47 | throw new \InvalidArgumentException('$httpCode must be an integer >= 100 and <= 600'); |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->httpCode = $httpCode; |
||
| 51 | $this->headers = $headers; |
||
| 52 | $this->body = $body; |
||
| 53 | } |
||
| 54 | |||
| 85 |