Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait AvailableRoutesTrait |
||
12 | { |
||
13 | |||
14 | /** @var array $availableRoutes */ |
||
15 | protected $availableRoutes = []; |
||
16 | |||
17 | /** |
||
18 | * @return array |
||
19 | */ |
||
20 | public function getAvailableRoutes(): array |
||
21 | { |
||
22 | return $this->availableRoutes; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param array $availableRoutes |
||
27 | */ |
||
28 | public function setAvailableRoutes(array $availableRoutes) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param array $availableRoutes |
||
35 | */ |
||
36 | public function addAvailableRoutes(array $availableRoutes) |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param string $route |
||
45 | * @param string $requestClass |
||
46 | */ |
||
47 | public function addAvailableRoute(string $route, string $requestClass) |
||
54 |