| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | class MethodNotAllowedException extends Exception |
||
| 23 | { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Gets a method |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | * |
||
| 30 | 5 | * @since 2.9.0 |
|
| 31 | */ |
||
| 32 | 5 | public function getMethod() : string |
|
| 33 | { |
||
| 34 | return $this->fromContext('method', ''); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Gets allowed methods |
||
| 39 | * |
||
| 40 | 1 | * @return string[] |
|
| 41 | */ |
||
| 42 | 1 | public function getAllowedMethods() : array |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Gets joined allowed methods |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getJoinedAllowedMethods() : string |
||
| 55 | } |
||
| 56 | } |
||
| 57 |