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

createWebComponentConfigToTwigConfigTransformer()   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\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