| 1 | <?php  | 
            ||
| 8 | class Mixed extends Money  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 |      * {@inheritdoc} | 
            ||
| 12 | */  | 
            ||
| 13 | final public function getCurrency()  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 |      * {@inheritdoc} | 
            ||
| 20 | */  | 
            ||
| 21 | 2 | final protected function getDecimals()  | 
            |
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Returns the sum of this and an other amount of money  | 
            ||
| 28 | *  | 
            ||
| 29 | * @param Money $addend The addend  | 
            ||
| 30 | *  | 
            ||
| 31 | * @return Money The sum  | 
            ||
| 32 | */  | 
            ||
| 33 | 3 | public function plus(Money $addend)  | 
            |
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Returns the subtraction of this and an other amount of money  | 
            ||
| 40 | *  | 
            ||
| 41 | * @param Money $subtrahend The subtrahend  | 
            ||
| 42 | *  | 
            ||
| 43 | * @return Money The difference  | 
            ||
| 44 | */  | 
            ||
| 45 | 1 | public function minus(Money $subtrahend)  | 
            |
| 49 | }  | 
            ||
| 50 |