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) |
||
76 | |||
77 | /** |
||
78 | * Fetch API to get a list of entities. |
||
79 | * |
||
80 | * @param APIBusinessEntity $businessEntity |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getBusinessEntities(APIBusinessEntity $businessEntity, $page = 1) |
||
97 | |||
98 | /** |
||
99 | * filter API to get a list of entities. |
||
100 | * |
||
101 | * @param APIBusinessEntity $businessEntity |
||
102 | * @param array $filters |
||
|
|||
103 | * |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function searchBusinessEntities(APIBusinessEntity $businessEntity, BusinessProperty $businessProperty, $filter) |
||
121 | |||
122 | /** |
||
123 | * Sends a curl request to a given path. |
||
124 | * |
||
125 | * @param APIEndpoint $endPoint |
||
126 | * |
||
127 | * @return array |
||
128 | */ |
||
129 | protected function callApi(APIEndpoint $endPoint, $getMethod) |
||
146 | } |
||
147 |
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.