convertIntegerToDecimal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Computop\Dependency\Facade;
9
10
class ComputopToMoneyFacadeBridge implements ComputopToMoneyFacadeInterface
11
{
12
    /**
13
     * @var \Spryker\Zed\Money\Business\MoneyFacadeInterface
14
     */
15
    protected $moneyFacade;
16
17
    /**
18
     * @param \Spryker\Zed\Money\Business\MoneyFacadeInterface $moneyFacade
19
     */
20
    public function __construct($moneyFacade)
21
    {
22
        $this->moneyFacade = $moneyFacade;
23
    }
24
25
    /**
26
     * @param int $value
27
     *
28
     * @return float
29
     */
30
    public function convertIntegerToDecimal($value)
31
    {
32
        return $this->moneyFacade->convertIntegerToDecimal($value);
33
    }
34
35
    /**
36
     * @param float $value
37
     *
38
     * @return int
39
     */
40
    public function convertDecimalToInteger($value)
41
    {
42
        return $this->moneyFacade->convertDecimalToInteger($value);
43
    }
44
}
45