Passed
Branch feature/ECO-808-scrutinizer (bde35b)
by Andrey
07:45
created

AmazonpayToCustomerBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getCustomer() 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\Client;
9
10
class AmazonpayToCustomerBridge implements AmazonpayToCustomerInterface
11
{
12
13
    /**
14
     * @var \Spryker\Client\Customer\CustomerClientInterface
15
     */
16
    protected $customerClient;
17
18
    /**
19
     * @param \Spryker\Client\Customer\CustomerClientInterface $customerClient
20
     */
21
    public function __construct($customerClient)
22
    {
23
        $this->customerClient = $customerClient;
24
    }
25
26
    /**
27
     * @return \Generated\Shared\Transfer\CustomerTransfer|null
28
     */
29
    public function getCustomer()
30
    {
31
        return $this->customerClient->getCustomer();
32
    }
33
34
}
35