Completed
Pull Request — master (#4)
by Andrey
10:46 queued 03:14
created

AmazonpayFactory   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 49
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomerClient() 0 3 1
A getShipmentClient() 0 3 1
A getCalculationClient() 0 3 1
A createAmazonpayConfig() 0 3 1
A getCheckoutClient() 0 3 1
A getQuoteClient() 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\Yves\Amazonpay;
9
10
use Spryker\Yves\Kernel\AbstractFactory;
11
use SprykerEco\Shared\Amazonpay\AmazonpayConfig;
12
13
class AmazonpayFactory extends AbstractFactory
14
{
15
16
    /**
17
     * @return \SprykerEco\Zed\Amazonpay\Dependency\Client\AmazonpayToQuoteInterface
18
     */
19
    public function getQuoteClient()
20
    {
21
        return $this->getProvidedDependency(AmazonpayDependencyProvider::CLIENT_QUOTE);
22
    }
23
24
    /**
25
     * @return \SprykerEco\Zed\Amazonpay\Dependency\Client\AmazonpayToCheckoutInterface
26
     */
27
    public function getCheckoutClient()
28
    {
29
        return $this->getProvidedDependency(AmazonpayDependencyProvider::CLIENT_CHECKOUT);
30
    }
31
32
    /**
33
     * @return \SprykerEco\Shared\Amazonpay\AmazonpayConfigInterface
34
     */
35
    public function createAmazonpayConfig()
36
    {
37
        return new AmazonpayConfig();
38
    }
39
40
    /**
41
     * @return \SprykerEco\Zed\Amazonpay\Dependency\Client\AmazonpayToShipmentBridgeInterface
42
     */
43
    public function getShipmentClient()
44
    {
45
        return $this->getProvidedDependency(AmazonpayDependencyProvider::CLIENT_SHIPMENT);
46
    }
47
48
    /**
49
     * @return \SprykerEco\Zed\Amazonpay\Dependency\Client\AmazonpayToCalculationInterface
50
     */
51
    public function getCalculationClient()
52
    {
53
        return $this->getProvidedDependency(AmazonpayDependencyProvider::CLIENT_CALCULATION);
54
    }
55
56
    /**
57
     * @return \SprykerEco\Zed\Amazonpay\Dependency\Client\AmazonpayToCustomerInterface
58
     */
59
    public function getCustomerClient()
60
    {
61
        return $this->getProvidedDependency(AmazonpayDependencyProvider::CLIENT_CUSTOMER);
62
    }
63
64
}
65