1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Order\Model\Money;
6
7 interface MoneyInterface
8 {
9 /**
10 * @return float|int
11 */
12 public function getValue();
13
14 /**
15 * When precision is set to 2 this method will transforms 12.34 into 1234.
16 * @param int $precision
17 *
18 * @return int
19 */
20 public function getValueWithoutSeparation($precision = 2);
21
22 /**
23 * @param MoneyInterface $money
24 *
25 * @return MoneyInterface
26 */
27 public function add(MoneyInterface $money);
28
29 /**
30 * @param double $multiplier
31 *
32 * @return MoneyInterface
33 */
34 public function multiply($multiplier);
35 }
36