| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 31 | 7 | public function __construct(array $methods, string $path, string $method) |
|
| 32 | { |
||
| 33 | 7 | $this->methods = \array_map('strtoupper', $methods); |
|
| 34 | 7 | $message = 'Route with "%s" path requires request method(s) [%s], "%s" is invalid.'; |
|
| 35 | |||
| 36 | 7 | parent::__construct(\sprintf($message, $path, \implode(',', $methods), $method), 405); |
|
| 37 | } |
||
| 49 |