1 | <?php |
||
14 | final class HappyrClient |
||
15 | { |
||
16 | /** |
||
17 | * @var HttpClient |
||
18 | */ |
||
19 | private $httpClient; |
||
20 | |||
21 | /** |
||
22 | * @var Hydrator |
||
23 | */ |
||
24 | private $hydrator; |
||
25 | |||
26 | /** |
||
27 | * @var RequestFactory |
||
28 | */ |
||
29 | private $requestFactory; |
||
30 | |||
31 | /** |
||
32 | * The constructor accepts already configured HTTP clients. |
||
33 | * Use the configure method to pass a configuration to the Client and create an HTTP Client. |
||
34 | * |
||
35 | * @param HttpClient $httpClient |
||
36 | * @param Hydrator|null $hydrator |
||
37 | * @param RequestFactory|null $requestFactory |
||
38 | */ |
||
39 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @param HttpClientConfigurator $httpClientConfigurator |
||
51 | * @param Hydrator|null $hydrator |
||
52 | * @param RequestFactory|null $requestFactory |
||
53 | * |
||
54 | * @return HappyrClient |
||
55 | */ |
||
56 | public static function configure( |
||
65 | |||
66 | /** |
||
67 | * @param string $apiKey |
||
|
|||
68 | * |
||
69 | * @return HappyrClient |
||
70 | */ |
||
71 | public static function create($apiUser, $apiPassword) |
||
77 | |||
78 | /** |
||
79 | * @return Api\Interview |
||
80 | */ |
||
81 | public function interview() |
||
85 | |||
86 | /** |
||
87 | * @return Api\Dimension |
||
88 | */ |
||
89 | public function dimensions() |
||
93 | |||
94 | /** |
||
95 | * @return Api\Match |
||
96 | */ |
||
97 | public function match() |
||
101 | |||
102 | /** |
||
103 | * @return Api\Norm |
||
104 | */ |
||
105 | public function norm() |
||
109 | |||
110 | /** |
||
111 | * @return Api\ProfilePattern |
||
112 | */ |
||
113 | public function profilePattern() |
||
117 | |||
118 | /** |
||
119 | * @return Api\Statement |
||
120 | */ |
||
121 | public function statement() |
||
125 | |||
126 | /** |
||
127 | * @return Api\UserManagement |
||
128 | */ |
||
129 | public function userManagement() |
||
133 | } |
||
134 |
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.