| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | trait VerbsTrait |
||
| 18 | { |
||
| 19 | /** @var array */ |
||
| 20 | protected $verbs = RouteInterface::VERBS; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Attach specific list of HTTP verbs to the route. |
||
| 24 | * |
||
| 25 | * @param string ...$verbs |
||
| 26 | * |
||
| 27 | * @return RouteInterface|$this |
||
| 28 | * |
||
| 29 | * @throws RouteException |
||
| 30 | */ |
||
| 31 | public function withVerbs(string ...$verbs): RouteInterface |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Return list of HTTP verbs route must handle. |
||
| 51 | * |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getVerbs(): array |
||
| 59 |