Passed
Pull Request — master (#23)
by Volodymyr
48:37
created

PayoneBancontactOnlineTransferSubFormPlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSubForm() 0 4 1
A createSubFormDataProvider() 0 4 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\Payone\Plugin;
9
10
use Spryker\Yves\Kernel\AbstractPlugin;
11
use Spryker\Yves\StepEngine\Dependency\Plugin\Form\SubFormPluginInterface;
12
13
/**
14
 * @method \SprykerEco\Yves\Payone\PayoneFactory getFactory()
15
 */
16
class PayoneBancontactOnlineTransferSubFormPlugin extends AbstractPlugin implements SubFormPluginInterface
17
{
18
    /**
19
     * @return \SprykerEco\Yves\Payone\Form\BancontactOnlineTransferSubForm
20
     */
21
    public function createSubForm()
22
    {
23
        return $this->getFactory()->createBancontactOnlineTransferSubForm();
24
    }
25
26
    /**
27
     * @return \SprykerEco\Yves\Payone\Form\DataProvider\BancontactOnlineTransferDataProvider
28
     */
29
    public function createSubFormDataProvider()
30
    {
31
        return $this->getFactory()->createBancontactOnlineTransferSubFormDataProvider();
32
    }
33
}
34