| 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 |
||
| 18 | 15 | public function __construct($middlewareDefinition) |
|
| 19 | { |
||
| 20 | 15 | $message = 'Parameter should be either PSR middleware class name or a callable.'; |
|
| 21 | |||
| 22 | 15 | $definitionString = $this->convertDefinitionToString($middlewareDefinition); |
|
| 23 | 15 | if ($definitionString !== null) { |
|
| 24 | 12 | $message .= ' Got ' . $definitionString . '.'; |
|
| 25 | } |
||
| 26 | |||
| 27 | 15 | parent::__construct($message); |
|
| 28 | 15 | } |
|
| 70 |