SofortSubFormPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSubForm() 0 5 1
A createSubFormDataProvider() 0 5 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;
9
10
use Spryker\Yves\Kernel\AbstractPlugin;
11
use Spryker\Yves\StepEngine\Dependency\Plugin\Form\SubFormPluginInterface;
12
13
/**
14
 * @method \SprykerEco\Yves\Computop\ComputopFactory getFactory()
15
 */
16
class SofortSubFormPlugin extends AbstractPlugin implements SubFormPluginInterface
17
{
18
    /**
19
     * @return \Spryker\Yves\StepEngine\Dependency\Form\SubFormInterface
20
     */
21
    public function createSubForm()
22
    {
23
        return $this
24
            ->getFactory()
25
            ->createSofortForm();
26
    }
27
28
    /**
29
     * @return \Spryker\Yves\StepEngine\Dependency\Form\StepEngineFormDataProviderInterface
30
     */
31
    public function createSubFormDataProvider()
32
    {
33
        return $this
34
            ->getFactory()
35
            ->createSofortFormDataProvider();
36
    }
37
}
38