Passed
Push — feature/ECO-808-scrutinizer ( 956529...82fb0b )
by Andrey
05:28 queued 01:30
created

AmazonpayToMoneyBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 24
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
    /**
14
     * @var \Spryker\Zed\Money\Business\MoneyFacadeInterface
15
     */
16
    protected $moneyFacade;
17
18
    /**
19
     * @param \Spryker\Zed\Money\Business\MoneyFacadeInterface $moneyFacade
20
     */
21
    public function __construct($moneyFacade)
22
    {
23
        $this->moneyFacade = $moneyFacade;
24
    }
25
26
    /**
27
     * @param int $value
28
     *
29
     * @return float
30
     */
31
    public function convertIntegerToDecimal($value)
32
    {
33
        return $this->moneyFacade->convertIntegerToDecimal($value);
34
    }
35
36
}
37