CartPageConfig::getCartValidationCacheTTL()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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