1 | <?php |
||
17 | class NullTransport extends AbstractTransport |
||
18 | { |
||
19 | /** |
||
20 | * Response you want to get from the transport |
||
21 | * |
||
22 | * @var Response Response |
||
23 | */ |
||
24 | protected $_response = null; |
||
25 | |||
26 | /** |
||
27 | * Set response object the transport returns |
||
28 | * |
||
29 | * @param \Elastica\Response $response |
||
|
|||
30 | * |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function getResponse() |
||
37 | |||
38 | /** |
||
39 | * Set response object the transport returns |
||
40 | * |
||
41 | * @param \Elastica\Response $response |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setResponse(Response $response) |
||
50 | |||
51 | /** |
||
52 | * Generate an example response object |
||
53 | * |
||
54 | * @param array $params Hostname, port, path, ... |
||
55 | * |
||
56 | * @return \Elastica\Response $response |
||
57 | */ |
||
58 | public function generateDefaultResponse(array $params) |
||
77 | |||
78 | /** |
||
79 | * Null transport. |
||
80 | * |
||
81 | * @param \Elastica\Request $request |
||
82 | * @param array $params Hostname, port, path, ... |
||
83 | * |
||
84 | * @return \Elastica\Response Response empty object |
||
85 | */ |
||
86 | public function exec(Request $request, array $params) |
||
96 | } |
||
97 |
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.