1 | <?php |
||
16 | class APIBusinessEntityResolver implements BusinessEntityResolverInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var ParameterConverter |
||
20 | */ |
||
21 | private $parameterConverter; |
||
22 | /** |
||
23 | * @var ApiAuthenticationChain |
||
24 | */ |
||
25 | private $authenticationChain; |
||
26 | |||
27 | /** |
||
28 | * APIBusinessEntityResolver constructor. |
||
29 | * |
||
30 | * @param ParameterConverter $parameterConverter |
||
31 | * @param ApiAuthenticationChain $authenticationChain |
||
32 | */ |
||
33 | public function __construct(ParameterConverter $parameterConverter, APIAuthenticationChain $authenticationChain) |
||
38 | |||
39 | /** |
||
40 | * Fetch API to get a single entity. |
||
41 | * |
||
42 | * @param EntityProxy $entityProxy |
||
43 | * |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getBusinessEntity(EntityProxy $entityProxy) |
||
72 | |||
73 | /** |
||
74 | * Fetch API to get a list of entities. |
||
75 | * |
||
76 | * @param APIBusinessEntity $businessEntity |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | public function getBusinessEntities(APIBusinessEntity $businessEntity, $page = 1) |
||
93 | |||
94 | /** |
||
95 | * filter API to get a list of entities. |
||
96 | * |
||
97 | * @param APIBusinessEntity $businessEntity |
||
98 | * @param array $filters |
||
|
|||
99 | * |
||
100 | * @return mixed |
||
101 | */ |
||
102 | public function searchBusinessEntities(APIBusinessEntity $businessEntity, BusinessProperty $businessProperty, $filter) |
||
117 | |||
118 | /** |
||
119 | * Sends a curl request to a given path. |
||
120 | * |
||
121 | * @param APIEndpoint $endPoint |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | protected function callApi($host, $getMethod, APIEndpoint $endPoint) |
||
141 | } |
||
142 |
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.