Total Complexity | 6 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class UserAdminManager |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * The application instance. |
||
16 | */ |
||
17 | protected Application $app; |
||
18 | |||
19 | /** |
||
20 | * Index page manager instance. |
||
21 | */ |
||
22 | protected ?IndexPageManager $indexPage = null; |
||
23 | |||
24 | /** |
||
25 | * Create a new instance. |
||
26 | * |
||
27 | * @param Application $app |
||
28 | */ |
||
29 | 7 | public function __construct(Application $app) |
|
32 | 7 | } |
|
33 | |||
34 | /** |
||
35 | * Initialize default routes. |
||
36 | * |
||
37 | * @param \Closure|null $callback |
||
38 | * @param \Closure|null $additionalRoutes |
||
39 | */ |
||
40 | 7 | public function routes(?\Closure $callback = null, ?\Closure $additionalRoutes = null) |
|
53 | } |
||
54 | 7 | }); |
|
55 | 7 | } |
|
56 | |||
57 | /** |
||
58 | * Get index page manager. |
||
59 | * |
||
60 | * @return IndexPageManager |
||
61 | */ |
||
62 | 7 | public function indexPage(): IndexPageManager |
|
71 |