Passed
Pull Request — dev (#9)
by Andrey
07:03 queued 03:30
created

AmazonPayFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getZedRequestClient() 0 3 1
A createZedStub() 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\Client\AmazonPay;
9
10
use Spryker\Client\Kernel\AbstractFactory;
11
use SprykerEco\Client\AmazonPay\Zed\AmazonPayStub;
12
13
class AmazonPayFactory extends AbstractFactory
14
{
15
    /**
16
     * @return \SprykerEco\Client\AmazonPay\Zed\AmazonPayStubInterface
17
     */
18
    public function createZedStub()
19
    {
20
        return new AmazonPayStub($this->getZedRequestClient());
21
    }
22
23
    /**
24
     * @return \Spryker\Client\ZedRequest\ZedRequestClientInterface
25
     */
26
    protected function getZedRequestClient()
27
    {
28
        return $this->getProvidedDependency(AmazonPayDependencyProvider::CLIENT_ZED_REQUEST);
29
    }
30
}
31