Completed
Push — master ( 56b1e7...8e49ad )
by Andrey
17s queued 10s
created

AmazonPayFactory::getCartClient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToQuoteInterface
17
     */
18
    public function getQuoteClient()
19
    {
20
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_QUOTE);
21
    }
22
23
    /**
24
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCartInterface
25
     */
26
    public function getCartClient()
27
    {
28
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CART);
29
    }
30
31
    /**
32
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCheckoutInterface
33
     */
34
    public function getCheckoutClient()
35
    {
36
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CHECKOUT);
37
    }
38
39
    /**
40
     * @return \SprykerEco\Shared\AmazonPay\AmazonPayConfigInterface
41
     */
42
    public function createAmazonPayConfig()
43
    {
44
        return new AmazonPayConfig();
45
    }
46
47
    /**
48
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToShipmentInterface
49
     */
50
    public function getShipmentClient()
51
    {
52
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_SHIPMENT);
53
    }
54
55
    /**
56
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCalculationInterface
57
     */
58
    public function getCalculationClient()
59
    {
60
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CALCULATION);
61
    }
62
63
    /**
64
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCustomerInterface
65
     */
66
    public function getCustomerClient()
67
    {
68
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CUSTOMER);
69
    }
70
71
    /**
72
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToGlossaryStorageInterface
73
     */
74
    public function getGlossaryStorageClient()
75
    {
76
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_GLOSSARY_STORAGE);
77
    }
78
}
79