Passed
Pull Request — dev (#9)
by Andrey
07:38 queued 03:31
created

AmazonPayToMoneyBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A convertIntegerToDecimal() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Apache OSL-2
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\AmazonPay\Dependency\Facade;
9
10
class AmazonPayToMoneyBridge implements AmazonPayToMoneyInterface
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