1 | <?php |
||
22 | class ApiService |
||
23 | { |
||
24 | /** |
||
25 | * Guzzle Client |
||
26 | * @var \GuzzleHttp\Client $httpClient |
||
27 | */ |
||
28 | protected $httpClient; |
||
29 | |||
30 | /* |
||
31 | * Columnis Api Client Number |
||
32 | * @var string $clientNumber |
||
33 | */ |
||
34 | protected $clientNumber; |
||
35 | |||
36 | /** |
||
37 | * Returns the Guzzle Client |
||
38 | * @return \GuzzleHttp\Client |
||
39 | 7 | */ |
|
40 | 7 | public function getHttpClient() |
|
44 | |||
45 | /** |
||
46 | * Sets the Guzzle Client |
||
47 | 8 | * @param \GuzzleHttp\Client $httpClient |
|
48 | 8 | */ |
|
49 | 8 | public function setHttpClient(GuzzleClient $httpClient) |
|
53 | |||
54 | /** |
||
55 | 8 | * Returns the Client Number of Columnis Api |
|
56 | 8 | * @return string |
|
57 | */ |
||
58 | public function getClientNumber() |
||
62 | |||
63 | 8 | /** |
|
64 | 8 | * Sets the Client Number of Columnis Api |
|
65 | 8 | * @param string $clientNumber |
|
66 | */ |
||
67 | 7 | public function setClientNumber($clientNumber) |
|
71 | |||
72 | public function __construct(GuzzleClient $httpClient, $clientNumber) |
||
77 | |||
78 | /** |
||
79 | * Performs a request to Columnis api |
||
80 | * |
||
81 | 6 | * @param string $uri |
|
82 | * @param Array $queryParams |
||
|
|||
83 | * @param Array $params |
||
84 | 6 | * @return ApiResponse |
|
85 | 6 | * @trows ApiRequestException |
|
86 | 6 | */ |
|
87 | 6 | public function request($uri, $method = 'GET', Array $options = null) |
|
135 | /** |
||
136 | * Gets the Uri for the desire enpoint |
||
137 | * @param string $endpoint |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getUri($endpoint) |
||
144 | } |
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.