CoremediaConfig::getCoremediaHost()   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
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
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Client\Coremedia;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\Coremedia\CoremediaConstants;
12
13
/**
14
 * @method \SprykerEco\Shared\Coremedia\CoremediaConfig getSharedConfig()
15
 */
16
class CoremediaConfig extends AbstractBundleConfig
17
{
18
    protected const FRAGMENT_BASE_PATH = '/blueprint/servlet/service/fragment/';
19
20
    /**
21
     * @api
22
     *
23
     * @return string
24
     */
25
    public function getCoremediaHost(): string
26
    {
27
        return $this->get(CoremediaConstants::COREMEDIA_HOST, null);
28
    }
29
30
    /**
31
     * @api
32
     *
33
     * @return bool
34
     */
35
    public function isDebugModeEnabled(): bool
36
    {
37
        return $this->getSharedConfig()->isDebugModeEnabled();
38
    }
39
40
    /**
41
     * @api
42
     *
43
     * @return string
44
     */
45
    public function getFragmentBasePath(): string
46
    {
47
        return static::FRAGMENT_BASE_PATH;
48
    }
49
50
    /**
51
     * [
52
     *     'ApplicationStoreName1' => 'CoremediaStoreName1',
53
     *     ...
54
     * ]
55
     *
56
     * @api
57
     *
58
     * @return string[]
59
     */
60
    public function getApplicationStoreMapping(): array
61
    {
62
        return [];
63
    }
64
65
    /**
66
     * [
67
     *     'CoremediaStoreName1` => ['en_US' => 'en-GB', 'de_DE' => 'de-DE'],
68
     *     ...
69
     * ]
70
     *
71
     * @api
72
     *
73
     * @return string[][]
74
     */
75
    public function getApplicationStoreLocaleMapping(): array
76
    {
77
        return [];
78
    }
79
}
80