Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class QuantityFieldExtension extends Extension |
||
14 | { |
||
15 | |||
16 | public function onBeforeRender() |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Limit the quantity to the number available |
||
29 | * @param $quantity |
||
30 | */ |
||
31 | public function updateQuantity(&$quantity) |
||
39 | } |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Adds limit |
||
44 | * @param $data |
||
45 | */ |
||
46 | public function updateData(&$data) |
||
55 |