1 | <?php |
||
9 | class Checkout |
||
10 | { |
||
11 | /** |
||
12 | * @var Order |
||
13 | */ |
||
14 | private $order; |
||
15 | |||
16 | /** |
||
17 | * @var Customer |
||
18 | */ |
||
19 | private $customer; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $redirectTo; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | private $maxUses; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | private $maxAge; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $notificationURL; |
||
40 | |||
41 | /** |
||
42 | * @param Order $order |
||
43 | 24 | * @param Customer $customer |
|
|
|||
44 | * @param string $redirectTo |
||
45 | 24 | * @param string $maxUses |
|
46 | 24 | * @param string $maxAge |
|
47 | */ |
||
48 | public function __construct(Order $order = null) |
||
52 | |||
53 | 6 | /** |
|
54 | * @return Order |
||
55 | */ |
||
56 | public function getOrder() |
||
60 | |||
61 | 4 | /** |
|
62 | * @return Customer |
||
63 | */ |
||
64 | public function getCustomer() |
||
68 | |||
69 | 5 | /** |
|
70 | 5 | * @param Customer $customer |
|
71 | */ |
||
72 | public function setCustomer(Customer $customer) |
||
76 | |||
77 | 4 | /** |
|
78 | * @return string |
||
79 | */ |
||
80 | public function getRedirectTo() |
||
84 | |||
85 | 4 | /** |
|
86 | 4 | * @param string $redirectTo |
|
87 | */ |
||
88 | public function setRedirectTo($redirectTo) |
||
92 | |||
93 | 4 | /** |
|
94 | * @return int |
||
95 | */ |
||
96 | public function getMaxUses() |
||
100 | |||
101 | 4 | /** |
|
102 | 4 | * @param int $maxUses |
|
103 | */ |
||
104 | public function setMaxUses($maxUses) |
||
108 | |||
109 | 4 | /** |
|
110 | * @return int |
||
111 | */ |
||
112 | public function getMaxAge() |
||
116 | |||
117 | 4 | /** |
|
118 | 4 | * @param int $maxAge |
|
119 | */ |
||
120 | public function setMaxAge($maxAge) |
||
124 | |||
125 | /** |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getNotificationURL() |
||
132 | |||
133 | /** |
||
134 | * @param string $notificationURL |
||
135 | */ |
||
136 | public function setNotificationURL($notificationURL) |
||
140 | } |
||
141 |
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.