Passed
Push — feature/eco-574/eco-2266-check... ( 7e1004...8cf5ab )
by Aleksey
04:15
created

AfterPayFactory::getAfterPayClient()   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
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Yves\AfterPay;
9
10
use Spryker\Yves\Kernel\AbstractFactory;
11
use Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface;
12
use Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface;
13
use SprykerEco\Yves\AfterPay\Expander\AfterPayPaymentExpander;
14
use SprykerEco\Yves\AfterPay\Expander\AfterPayPaymentExpanderInterface;
15
use SprykerEco\Yves\AfterPay\Form\DataProvider\InvoiceDataProvider;
16
use SprykerEco\Yves\AfterPay\Form\InvoiceSubForm;
17
18
/**
19
 * @method \SprykerEco\Yves\AfterPay\AfterPayConfig getConfig()
20
 * @method \SprykerEco\Client\AfterPay\AfterPayClientInterface getClient()
21
 */
22
class AfterPayFactory extends AbstractFactory
23
{
24
    /**
25
     * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface
26
     */
27
    public function createInvoiceForm(): SubFormInterface
28
    {
29
        return new InvoiceSubForm();
30
    }
31
32
    /**
33
     * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface
34
     */
35
    public function createInvoiceFormDataProvider(): StepEngineFormDataProviderInterface
36
    {
37
        return new InvoiceDataProvider();
38
    }
39
40
    /**
41
     * @return \SprykerEco\Yves\AfterPay\Expander\AfterPayPaymentExpanderInterface
42
     */
43
    public function createPaymentExpander(): AfterPayPaymentExpanderInterface
44
    {
45
        return new AfterPayPaymentExpander();
46
    }
47
}
48