1 | <?php |
||
23 | abstract class AbstractUserAssociation extends Action |
||
24 | { |
||
25 | use ManageTrait; |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | * @param UserAssociation $record |
||
|
|||
30 | * @return bool |
||
31 | */ |
||
32 | abstract protected function performAction(User $user, Organization $organization, int $sortOrder = null): bool; |
||
33 | |||
34 | /** |
||
35 | * HTTP not found response code |
||
36 | * |
||
37 | * @return int |
||
38 | */ |
||
39 | protected function statusCodeNotFound(): int |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | protected function messageNotFound(): string |
||
51 | |||
52 | /** |
||
53 | * @return null |
||
54 | * @throws HttpException |
||
55 | */ |
||
56 | protected function handleNotFoundResponse() |
||
63 | |||
64 | /** |
||
65 | * @param string|int $identifier |
||
66 | * @return User|null |
||
67 | */ |
||
68 | protected function findUser($identifier) |
||
76 | |||
77 | /** |
||
78 | * @param string $user |
||
79 | * @param string $organization |
||
80 | * @param int|null $sortOrder |
||
81 | * @return null|\yii\base\Model|\yii\web\Response |
||
82 | * @throws HttpException |
||
83 | */ |
||
84 | public function run( |
||
99 | |||
100 | /** |
||
101 | * @param User $user |
||
102 | * @param Organization $organization |
||
103 | * @param int|null $sortOrder |
||
104 | * @return mixed |
||
105 | * @throws \yii\web\UnauthorizedHttpException |
||
106 | */ |
||
107 | protected function runInternal(User $user, Organization $organization, int $sortOrder = null) |
||
120 | } |
||
121 |
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.