PriceModifierInterface::updateTotal()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
/**
3
 * PriceModifierInterface.php
4
 *
5
 * @author Bram de Leeuw
6
 * Date: 06/04/17
7
 */
8
9
namespace Broarm\EventTickets;
10
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);
0 ignored issues
show
Documentation introduced by
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

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.

Loading history...
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