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