Conditions | 2 |
Paths | 2 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
25 | public function throwExceptionIfServiceUnavailable(string $serviceName): void |
||
26 | { |
||
27 | if (false === $this->getCircuitBreaker()->isServiceAvailable($serviceName)) { |
||
28 | throw new UnavailableServiceException("Service {$serviceName} is not available right now."); |
||
29 | } |
||
42 |