1 | <?php |
||
23 | class CustomerPasswordResetRequest extends AbstractApiRequest |
||
24 | { |
||
25 | const TOKEN_VALUE = 'tokenValue'; |
||
26 | const NEW_PASSWORD = 'newPassword'; |
||
27 | |||
28 | protected $resultClass = '\Commercetools\Core\Model\Customer\Customer'; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $tokenValue; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $newPassword; |
||
39 | |||
40 | /** |
||
41 | * @param string $id |
||
|
|||
42 | * @param int $version |
||
43 | * @param string $tokenValue |
||
44 | * @param string $newPassword |
||
45 | * @param Context $context |
||
46 | */ |
||
47 | 4 | public function __construct($tokenValue, $newPassword, Context $context = null) |
|
53 | |||
54 | /** |
||
55 | * @param string $tokenValue |
||
56 | * @param string $newPassword |
||
57 | * @param Context $context |
||
58 | * @return static |
||
59 | */ |
||
60 | 4 | public static function ofTokenAndPassword( |
|
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | * @internal |
||
71 | */ |
||
72 | 4 | protected function getPath() |
|
76 | |||
77 | /** |
||
78 | * @return JsonRequest |
||
79 | * @internal |
||
80 | */ |
||
81 | 4 | public function httpRequest() |
|
89 | |||
90 | 1 | public function buildResponse(ResponseInterface $response) |
|
94 | } |
||
95 |
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.