CartPageConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCartValidationCacheTTL() 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
declare(strict_types = 1);
9
10
namespace Pyz\Yves\CartPage;
11
12
use SprykerShop\Yves\CartPage\CartPageConfig as SprykerCartPageConfig;
13
14
class CartPageConfig extends SprykerCartPageConfig
15
{
16
    /**
17
     * @var bool
18
     */
19
    protected const IS_CART_ACTIONS_ASYNC_MODE_ENABLED = true;
20
21
    /**
22
     * @var bool
23
     */
24
    protected const IS_CART_CART_ITEMS_VIA_AJAX_LOAD_ENABLED = true;
25
26
    /**
27
     * @var bool
28
     */
29
    protected const IS_LOADING_UPSELLING_PRODUCTS_VIA_AJAX_ENABLED = true;
30
31
    /**
32
     * @var bool
33
     */
34
    protected const IS_QUOTE_VALIDATION_ENABLED_FOR_AJAX_CART_ITEMS = false;
35
36
    /**
37
     * @return int
38
     */
39
    public function getCartValidationCacheTTL(): int
40
    {
41
        return 60;
42
    }
43
}
44