| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | 10 | public function __construct($middlewareDefinition) |
|
| 15 | { |
||
| 16 | 10 | $message = 'Parameter should be either PSR middleware class name or a callable.'; |
|
| 17 | |||
| 18 | 10 | $definition = $this->convertDefinitionToString($middlewareDefinition); |
|
| 19 | 10 | if ($definition !== null) { |
|
| 20 | 10 | $message .= ' Got it: ' . $definition . '.'; |
|
| 21 | } |
||
| 22 | |||
| 23 | 10 | parent::__construct($message); |
|
| 24 | 10 | } |
|
| 55 |