Passed
Push — master ( fec1be...9c1a24 )
by Aleksey
10:36 queued 15s
created

CartPageFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTwigEnvironment() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Yves\CartPage;
9
10
use SprykerShop\Yves\CartPage\CartPageFactory as SprykerShopCartPageFactory;
11
use Twig\Environment;
12
13
class CartPageFactory extends SprykerShopCartPageFactory
14
{
15
    /**
16
     * @return \Twig\Environment
17
     */
18
    public function getTwigEnvironment(): Environment
19
    {
20
        return $this->getProvidedDependency(CartPageDependencyProvider::TWIG_ENVIRONMENT);
21
    }
22
}
23