Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ServicesListService | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
getServicesList | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getServices | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace BO\Zmscitizenapi\Services\Service; |
6 | |
7 | use BO\Zmscitizenapi\Models\Collections\ServiceList; |
8 | use BO\Zmscitizenapi\Services\Core\ZmsApiFacadeService; |
9 | |
10 | class ServicesListService |
11 | { |
12 | public function getServicesList(bool $showUnpublished = false): ServiceList|array |
13 | { |
14 | return $this->getServices($showUnpublished); |
15 | } |
16 | |
17 | private function getServices(bool $showUnpublished = false): array|ServiceList |
18 | { |
19 | return ZmsApiFacadeService::getServices($showUnpublished); |
20 | } |
21 | } |