Passed
Branch development (62ef01)
by Theodoros
06:18
created

EcondaConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 3
c 3
b 0
f 0
dl 0
loc 38
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getStoragePdoQueryAdapterClassNames() 0 12 1
A getFileExportPath() 0 3 1
A getHostYves() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Econda;
9
10
use Spryker\Shared\Application\ApplicationConstants;
11
use Spryker\Zed\Kernel\AbstractBundleConfig;
12
use SprykerEco\Shared\Econda\EcondaConstants;
13
14
class EcondaConfig extends AbstractBundleConfig
15
{
16
    const ECONDA_CSV_DELIMITER = '|';
17
    const ECONDA_CSV_CATEGORY_DELIMITER = '^^';
18
19
    /**
20
     * @return string
21
     */
22
    public function getHostYves()
23
    {
24
        return $this->get(ApplicationConstants::HOST_YVES);
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getFileExportPath()
31
    {
32
        return $this->get(EcondaConstants::ECONDA_CSV_FOLDER_PATH);
33
    }
34
35
    /**
36
     * @param string $dbEngineName
37
     *
38
     * @return array
39
     */
40
    public function getStoragePdoQueryAdapterClassNames($dbEngineName)
41
    {
42
        $data = [
43
            'MySql' => [
44
45
            ],
46
            'PostgreSql' => [
47
48
            ],
49
        ];
50
51
        return $data[$dbEngineName];
52
    }
53
}
54