Completed
Pull Request — dev (#9)
by Andrey
07:12 queued 03:40
created

AmazonPayFactory::getCheckoutClient()   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\AmazonPayToCheckoutInterface
25
     */
26
    public function getCheckoutClient()
27
    {
28
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CHECKOUT);
29
    }
30
31
    /**
32
     * @return \SprykerEco\Shared\AmazonPay\AmazonPayConfigInterface
33
     */
34
    public function createAmazonPayConfig()
35
    {
36
        return new AmazonPayConfig();
37
    }
38
39
    /**
40
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToShipmentInterface
41
     */
42
    public function getShipmentClient()
43
    {
44
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_SHIPMENT);
45
    }
46
47
    /**
48
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCalculationInterface
49
     */
50
    public function getCalculationClient()
51
    {
52
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CALCULATION);
53
    }
54
55
    /**
56
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCustomerInterface
57
     */
58
    public function getCustomerClient()
59
    {
60
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CUSTOMER);
61
    }
62
}
63