Passed
Pull Request — master (#41)
by Roman
08:34
created

PayuCeeSingleSubFormPlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
c 0
b 0
f 0
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSubFormDataProvider() 0 3 1
A createSubForm() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Yves\Computop\Plugin\CheckoutPage;
9
10
use Spryker\Yves\Kernel\AbstractPlugin;
11
use Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface;
12
use Spryker\Yves\StepEngine\Dependency\Plugin\Form\SubFormPluginInterface;
13
use SprykerEco\Yves\Computop\Form\DataProvider\PayuCeeSingleFormDataProvider;
14
15
/**
16
 * @method \SprykerEco\Yves\Computop\ComputopFactory getFactory()
17
 */
18
class PayuCeeSingleSubFormPlugin extends AbstractPlugin implements SubFormPluginInterface
19
{
20
    /**
21
     * {@inheritDoc}
22
     * - Returns a sub form for `PayU CEE Single` payment method.
23
     *
24
     * @api
25
     *
26
     * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface
27
     */
28
    public function createSubForm(): SubFormInterface
29
    {
30
        return $this->getFactory()->createPayuCeeSingleSubForm();
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     * - Returns data provider for `PayU CEE Single` payment method form.
36
     *
37
     * @api
38
     *
39
     * @return \SprykerEco\Yves\Computop\Form\DataProvider\PayuCeeSingleFormDataProvider
40
     */
41
    public function createSubFormDataProvider(): PayuCeeSingleFormDataProvider
42
    {
43
        return $this->getFactory()->createPayuCeeSingleFormDataProvider();
44
    }
45
}
46