1 | <?php |
||
24 | class InstitutionAuthorizationContext implements InstitutionAuthorizationContextInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var Institution |
||
28 | */ |
||
29 | private $actorInstitution; |
||
30 | |||
31 | /** |
||
32 | * @var InstitutionRoleSet |
||
33 | */ |
||
34 | private $roleRequirements; |
||
35 | |||
36 | /** |
||
37 | * @var InstitutionCollection|null |
||
38 | */ |
||
39 | private $institutions; |
||
40 | |||
41 | /** |
||
42 | * @var bool |
||
43 | */ |
||
44 | private $isSraa; |
||
45 | |||
46 | /** |
||
47 | * AuthorizationContext constructor. |
||
48 | * @param Institution $actorInstitution |
||
49 | * @param InstitutionRoleSetInterface $roleRequirements |
||
50 | * @param InstitutionCollection $institutions[] |
||
|
|||
51 | * @param bool $isSraa describes if the actor is SRAA or not. Default: false |
||
52 | */ |
||
53 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @return Institution |
||
67 | */ |
||
68 | public function getActorInstitution() |
||
72 | |||
73 | /** |
||
74 | * @return InstitutionRoleSet |
||
75 | */ |
||
76 | public function getRoleRequirements() |
||
80 | |||
81 | /** |
||
82 | * @return InstitutionCollection |
||
83 | */ |
||
84 | public function getInstitutions() |
||
85 | { |
||
86 | return $this->institutions; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @return bool |
||
91 | */ |
||
92 | public function isActorSraa() |
||
96 | } |
||
97 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.