Completed
Pull Request — develop (#113)
by Boy
19:04 queued 16:04
created

InstitutionWithPersonalRaLocationsService   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
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 institutionShowsRaLocations() 0 4 1
1
<?php
2
3
namespace Surfnet\StepupRa\RaBundle\Service;
4
5
use Surfnet\StepupMiddlewareClientBundle\Configuration\Service\InstitutionWithPersonalRaLocationsService
6
    as ApiInstitutionWithPersonalRaLocationsService;
7
8
class InstitutionWithPersonalRaLocationsService
9
{
10
    /**
11
     * @var ApiInstitutionWithPersonalRaLocationsService
12
     */
13
    private $service;
14
15
    public function __construct(ApiInstitutionWithPersonalRaLocationsService $service)
16
    {
17
        $this->service = $service;
18
    }
19
20
    /**
21
     * @param string $institution
22
     * @return bool
23
     */
24
    public function institutionShowsRaLocations($institution)
25
    {
26
        return $this->service->institutionShowsRaLocations($institution);
0 ignored issues
show
Bug introduced by
The method institutionShowsRaLocations() does not seem to exist on object<Surfnet\StepupMid...onalRaLocationsService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
27
    }
28
}
29