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