| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 39 | public function getLastResponse(): ResponseInterface |
||
| 40 | { |
||
| 41 | if (1 > count($this->tuples)) { |
||
| 42 | throw new NoResponse; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** @var Tuple $tuple */ |
||
| 46 | $tuple = end($this->tuples); |
||
| 47 | reset($this->tuples); |
||
| 48 | |||
| 49 | $response = $tuple->getResponse(); |
||
| 50 | |||
| 51 | if (null === $response) { |
||
| 52 | throw new NoResponse; |
||
| 53 | } |
||
| 54 | |||
| 55 | return $response; |
||
| 56 | } |
||
| 71 |