Lines
100.00%
3 / 3
Functions and Methods
100.00%
3 / 3
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| OfficesServicesRelationsService | 100.00% | 3 / 3 | 100.00% | 3 / 3 | 3 | 100.00% | 1 / 1 | |||
| getServicesAndOfficesList | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| getServicesAndOffices | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| warmOfficesAndServicesCache | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace BO\Zmscitizenapi\Services\Office; | |
| 6 | ||
| 7 | use BO\Zmscitizenapi\Models\Collections\OfficeServiceAndRelationList; | |
| 8 | use BO\Zmscitizenapi\Services\Core\ZmsApiFacadeService; | |
| 9 | ||
| 10 | class OfficesServicesRelationsService | |
| 11 | { | |
| 12 | public function getServicesAndOfficesList(bool $showUnpublished = false): OfficeServiceAndRelationList|array | |
| 13 | { | |
| 14 | return $this->getServicesAndOffices($showUnpublished); | |
| 15 | } | |
| 16 | ||
| 17 | private function getServicesAndOffices(bool $showUnpublished): array|OfficeServiceAndRelationList | |
| 18 | { | |
| 19 | return ZmsApiFacadeService::getServicesAndOffices($showUnpublished); | |
| 20 | } | |
| 21 | ||
| 22 | /** | |
| 23 | * @return array{result: OfficeServiceAndRelationList|array, refreshedKeys: list<string>} | |
| 24 | */ | |
| 25 | public function warmOfficesAndServicesCache(): array | |
| 26 | { | |
| 27 | return ZmsApiFacadeService::warmOfficesAndServicesCache(); | |
| 28 | } | |
| 29 | } |