| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public static function with(Type $type, ResponseInterface $response): self |
||
| 29 | { |
||
| 30 | $self = new self( |
||
| 31 | sprintf('Response with status code "%s" was returned.', $response->getStatusCode()), |
||
| 32 | $response->getStatusCode() |
||
| 33 | ); |
||
| 34 | $self->type = $type; |
||
| 35 | $self->response = $response; |
||
| 36 | return $self; |
||
| 37 | } |
||
| 49 |