| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function addResponses(iterable $responses): self |
|
| 18 | { |
||
| 19 | 1 | foreach ($responses as $httpStatus => $response) { |
|
| 20 | // Force cast to string, because of PHP juggling, |
||
| 21 | // which converts HTTP status numbers into int. |
||
| 22 | 1 | $this->setResponse((string) $httpStatus, $response); |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | return $this; |
|
| 26 | } |
||
| 27 | |||
| 66 |