| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | use Surfnet\StepupMiddlewareClientBundle\Configuration\Service\RaLocationService as ApiRaLocationService; |
||
| 26 | |||
| 27 | final readonly class RaLocationService |
||
| 28 | { |
||
| 29 | public function __construct(private ApiRaLocationService $apiService) |
||
| 30 | { |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $institution |
||
| 35 | * @return RaLocationCollection |
||
| 36 | */ |
||
| 37 | public function listRaLocationsFor($institution) |
||
| 38 | { |
||
| 39 | $query = new RaLocationSearchQuery($institution); |
||
| 40 | |||
| 41 | return $this->apiService->search($query); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |