| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | 4 | public static function forStringNotConvertedToInstance(string $handler): self |
|
| 51 | { |
||
| 52 | 4 | return new self(sprintf( |
|
| 53 | 4 | 'String handler "%s" must be a name of a class or an identifier of' |
|
| 54 | 4 | . ' a container definition that implements `%s` or `%s` interface.', |
|
| 55 | 4 | $handler, |
|
| 56 | 4 | MiddlewareInterface::class, |
|
| 57 | 4 | RequestHandlerInterface::class |
|
| 58 | 4 | )); |
|
| 70 |