Completed
Push — feature/ra-locations ( c0446e...b1d5fe )
by Boy
03:15
created

institutionHasPersonalRaDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Surfnet\StepupMiddlewareClient\Configuration\Service;
4
5
use Surfnet\StepupMiddlewareClient\Service\ApiService;
6
7
class InstitutionWithPersonalRaDetailsService
8
{
9
    /**
10
     * @var ApiService
11
     */
12
    private $apiService;
13
14
    /**
15
     * @param string $institution
16
     * @return mixed|null
17
     */
18
    public function institutionHasPersonalRaDetails($institution)
19
    {
20
        return $this->apiService->read('/has-personal-ra-locations/%s', [$institution]);
21
    }
22
}
23