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 | * AuthorizationContext constructor. |
||
38 | * @param string $actorId |
||
|
|||
39 | * @param string $actorInstitution |
||
40 | * @param InstitutionRoleSetInterface $roleRequirements |
||
41 | */ |
||
42 | public function __construct($actorInstitution, InstitutionRoleSetInterface $roleRequirements) |
||
47 | |||
48 | /** |
||
49 | * @return Institution |
||
50 | */ |
||
51 | public function getActorInstitution() |
||
55 | |||
56 | /** |
||
57 | * @return InstitutionRoleSet |
||
58 | */ |
||
59 | public function getRoleRequirements() |
||
63 | } |
||
64 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.