Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | interface PriceModifierInterface |
||
12 | { |
||
13 | /** |
||
14 | * Modify the given total |
||
15 | * |
||
16 | * @param float $total |
||
17 | * @param Reservation $reservation |
||
18 | */ |
||
19 | public function updateTotal(&$total, Reservation $reservation); |
||
20 | |||
21 | /** |
||
22 | * Get the title for display in the summary table |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function getTableTitle(); |
||
27 | |||
28 | /** |
||
29 | * Get the modification value for display in the summary table |
||
30 | * Can be a discount or an addition |
||
31 | * |
||
32 | * @return float |
||
33 | */ |
||
34 | public function getTableValue(); |
||
35 | } |
||
36 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.