| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 90.91% covered (success) | 90.91% | 30 / 33 | 90.91% covered (success) | 90.91% | 10 / 11 | CRAP | 0.00% covered (danger) | 0.00% | 0 / 1
Services | 90.91% covered (success) | 90.91% | 30 / 33 | 90.91% covered (success) | 90.91% | 10 / 11 | 22.36 | 0.00% covered (danger) | 0.00% | 0 / 1
academyCatalog | 0.00% covered (danger) | 0.00% | 0 / 3 | 0.00% covered (danger) | 0.00% | 0 / 1 | 6 |
alerts | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
attendance | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
authorization | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
children | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
coaches | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
dashboard | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
evaluations | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
evaluationEngine | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
journey | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |
reports | 100.00% covered (success) | 100.00% | 3 / 3 | 100.00% covered (success) | 100.00% | 1 / 1 | 2 |

1 | <?php
2 |
3 | namespace Config;
4 |
5 | use App\Services\AcademyCatalogService;
6 | use App\Services\AlertService;
7 | use App\Services\AttendanceService;
8 | use App\Services\AuthorizationService;
9 | use App\Services\ChildrenService;
10 | use App\Services\CoachesService;
11 | use App\Services\DashboardService;
12 | use App\Services\EvaluationsService;
13 | use App\Services\EvaluationEngineService;
14 | use App\Services\JourneyService;
15 | use App\Services\ReportService;
16 | use CodeIgniter\Config\BaseService;
17 |
18 | /**
19 | * Services Configuration file.
20 | *
21 | * Services are simply other classes/libraries that the system uses
22 | * to do its job. This is used by CodeIgniter to allow the core of the
23 | * framework to be swapped out easily without affecting the usage within
24 | * the rest of your application.
25 | *
26 | * This file holds any application-specific services, or service overrides
27 | * that you might need. An example has been included with the general
28 | * method format you should use for your service methods. For more examples,
29 | * see the core Services file at system/Config/Services.php.
30 | */
31 | class Services extends BaseService
32 | {
33 | public static function academyCatalog(bool $getShared = true): AcademyCatalogService
34 | {
35 | if ($getShared) {
36 | return static::getSharedInstance('academyCatalog');
37 | }
38 |
39 | return new AcademyCatalogService();
40 | }
41 |
42 | public static function alerts(bool $getShared = true): AlertService
43 | {
44 | if ($getShared) {
45 | return static::getSharedInstance('alerts');
46 | }
47 |
48 | return new AlertService();
49 | }
50 |
51 | public static function attendance(bool $getShared = true): AttendanceService
52 | {
53 | if ($getShared) {
54 | return static::getSharedInstance('attendance');
55 | }
56 |
57 | return new AttendanceService();
58 | }
59 |
60 | public static function authorization(bool $getShared = true): AuthorizationService
61 | {
62 | if ($getShared) {
63 | return static::getSharedInstance('authorization');
64 | }
65 |
66 | return new AuthorizationService();
67 | }
68 |
69 | public static function children(bool $getShared = true): ChildrenService
70 | {
71 | if ($getShared) {
72 | return static::getSharedInstance('children');
73 | }
74 |
75 | return new ChildrenService();
76 | }
77 |
78 | public static function coaches(bool $getShared = true): CoachesService
79 | {
80 | if ($getShared) {
81 | return static::getSharedInstance('coaches');
82 | }
83 |
84 | return new CoachesService();
85 | }
86 |
87 | public static function dashboard(bool $getShared = true): DashboardService
88 | {
89 | if ($getShared) {
90 | return static::getSharedInstance('dashboard');
91 | }
92 |
93 | return new DashboardService();
94 | }
95 |
96 | public static function evaluations(bool $getShared = true): EvaluationsService
97 | {
98 | if ($getShared) {
99 | return static::getSharedInstance('evaluations');
100 | }
101 |
102 | return new EvaluationsService();
103 | }
104 |
105 | public static function evaluationEngine(bool $getShared = true): EvaluationEngineService
106 | {
107 | if ($getShared) {
108 | return static::getSharedInstance('evaluationEngine');
109 | }
110 |
111 | return new EvaluationEngineService();
112 | }
113 |
114 | public static function journey(bool $getShared = true): JourneyService
115 | {
116 | if ($getShared) {
117 | return static::getSharedInstance('journey');
118 | }
119 |
120 | return new JourneyService();
121 | }
122 |
123 | public static function reports(bool $getShared = true): ReportService
124 | {
125 | if ($getShared) {
126 | return static::getSharedInstance('reports');
127 | }
128 |
129 | return new ReportService();
130 | }
131 | }