Completed
Pull Request — master (#5)
by Serhii
11:00 queued 04:37
created

FactFinderWebComponentsFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createWebComponentsConfig() 0 3 1
A createWebComponentConfigToTwigConfigTransformer() 0 3 1
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\FactFinderWebComponents;
9
10
use Spryker\Yves\Kernel\AbstractFactory;
11
use SprykerEco\Yves\FactFinderWebComponents\Form\WebComponentConfigToTwigConfigTransformer;
12
use Symfony\Component\Form\DataTransformerInterface;
13
14
/**
15
 * @method \SprykerEco\Yves\FactFinderWebComponents\FactFinderWebComponentsConfig getConfig()
16
 */
17
class FactFinderWebComponentsFactory extends AbstractFactory
18
{
19
    /**
20
     * @return \SprykerEco\Yves\FactFinderWebComponents\WebComponentsConfigInterface
21
     */
22
    public function createWebComponentsConfig(): WebComponentsConfigInterface
23
    {
24
        return $this->getConfig();
25
    }
26
27
    /**
28
     * @return \Symfony\Component\Form\DataTransformerInterface
29
     */
30
    public function createWebComponentConfigToTwigConfigTransformer(): DataTransformerInterface
31
    {
32
        return new WebComponentConfigToTwigConfigTransformer();
33
    }
34
}
35