1 | <?php |
||
4 | class CouponSheet extends CouponSheetAbstract implements CouponSheetInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * @param string $id |
||
9 | * @return self Fluid Interface |
||
10 | */ |
||
11 | 5 | public function setId( $id ) { |
|
15 | |||
16 | |||
17 | /** |
||
18 | * @param int $quantity |
||
19 | * @return self Fluid Interface |
||
20 | */ |
||
21 | public function setQuantity( $quantity ) { |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @param string $id |
||
|
|||
29 | * @return self Fluid Interface |
||
30 | */ |
||
31 | 5 | public function setSlug( $slug ) { |
|
35 | |||
36 | |||
37 | /** |
||
38 | * @param string $id |
||
39 | * @return self Fluid Interface |
||
40 | */ |
||
41 | 5 | public function setName( $name ) { |
|
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | /** |
||
51 | * @param DateTimeInterface $valid_from |
||
52 | * @return self Fluid Interface |
||
53 | */ |
||
54 | 10 | public function setValidFrom( \DateTimeInterface $valid_from ) { |
|
58 | |||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | * |
||
63 | * If the valid_from value is a datetime string (like "Y-m-d H:i:s"), |
||
64 | * the value will be converted to a DateTime object. |
||
65 | * |
||
66 | * @return DateTime |
||
67 | * @implements CouponSheetInterface |
||
68 | */ |
||
69 | 10 | public function getValidFrom() { |
|
75 | |||
76 | |||
77 | |||
78 | /** |
||
79 | * @param DateTimeInterface $valid_until |
||
80 | * @return self Fluid Interface |
||
81 | */ |
||
82 | 10 | public function setValidUntil( \DateTimeInterface $valid_until ) { |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | * |
||
90 | * If the valid_until value is a datetime string (like "Y-m-d H:i:s"), |
||
91 | * the value will be converted to a DateTime object. |
||
92 | * |
||
93 | * @return DateTime |
||
94 | * @implements CouponSheetInterface |
||
95 | */ |
||
96 | 10 | public function getValidUntil() { |
|
103 | |||
104 | |||
105 | |||
106 | /** |
||
107 | * @return CouponInterface[] |
||
108 | * @implements CouponSheetInterface |
||
109 | */ |
||
110 | 10 | public function getCoupons() { |
|
116 | |||
117 | |||
118 | /** |
||
119 | * @param array|\Traversable $coupons |
||
120 | * @return self Fluid Interface |
||
121 | */ |
||
122 | 10 | public function setCoupons( $coupons ) |
|
144 | |||
145 | |||
146 | } |
||
147 |
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.