Completed
Pull Request — develop (#113)
by Boy
06:10 queued 02:54
created

InstitutionWithPersonalRaLocationsService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A institutionHasPersonalRaLocations() 0 4 1
1
<?php
2
3
namespace Surfnet\StepupRa\RaBundle\Service;
4
5
use Surfnet\StepupMiddlewareClientBundle\Configuration\Service\InstitutionWithPersonalRaLocationsService as ApiInstitutionWithPersonalRaLocationsService;
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 120 characters; contains 153 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
6
7
class InstitutionWithPersonalRaLocationsService
8
{
9
    /**
10
     * @var ApiInstitutionWithPersonalRaLocationsService
11
     */
12
    private $service;
13
14
    public function __construct(ApiInstitutionWithPersonalRaLocationsService $service)
15
    {
16
        $this->service = $service;
17
    }
18
19
    /**
20
     * @param string $institution
21
     * @return bool
22
     */
23
    public function institutionHasPersonalRaLocations($institution)
24
    {
25
        return $this->service->institutionHasPersonalRaLocations($institution);
26
    }
27
}
28