Passed
Pull Request — master (#29)
by Aleksey
08:31 queued 03:27
created

AmazonPayFactory::getMessengerClient()   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
use SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToMessengerClientInterface;
13
14
class AmazonPayFactory extends AbstractFactory
15
{
16
    /**
17
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToQuoteInterface
18
     */
19
    public function getQuoteClient()
20
    {
21
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_QUOTE);
22
    }
23
24
    /**
25
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCartInterface
26
     */
27
    public function getCartClient()
28
    {
29
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CART);
30
    }
31
32
    /**
33
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCheckoutInterface
34
     */
35
    public function getCheckoutClient()
36
    {
37
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CHECKOUT);
38
    }
39
40
    /**
41
     * @return \SprykerEco\Shared\AmazonPay\AmazonPayConfigInterface
42
     */
43
    public function createAmazonPayConfig()
44
    {
45
        return new AmazonPayConfig();
46
    }
47
48
    /**
49
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToShipmentInterface
50
     */
51
    public function getShipmentClient()
52
    {
53
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_SHIPMENT);
54
    }
55
56
    /**
57
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCalculationInterface
58
     */
59
    public function getCalculationClient()
60
    {
61
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CALCULATION);
62
    }
63
64
    /**
65
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToCustomerInterface
66
     */
67
    public function getCustomerClient()
68
    {
69
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_CUSTOMER);
70
    }
71
72
    /**
73
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToGlossaryStorageInterface
74
     */
75
    public function getGlossaryStorageClient()
76
    {
77
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_GLOSSARY_STORAGE);
78
    }
79
80
    /**
81
     * @return \SprykerEco\Yves\AmazonPay\Dependency\Client\AmazonPayToMessengerClientInterface
82
     */
83
    public function getMessengerClient(): AmazonPayToMessengerClientInterface
84
    {
85
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_MESSENGER);
86
    }
87
}
88