Passed
Pull Request — master (#14)
by Oleksandr
08:06
created

FactFinderSdkConfig   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnvironment() 0 3 1
A getItemFields() 0 3 1
A getDefaultProductsPerPage() 0 3 1
A getFactFinderConfiguration() 0 3 1
A getLog4PhpConfigPath() 0 3 1
A getCsvDirectory() 0 3 1
A getRedirectIfOneResult() 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\Client\FactFinderSdk;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\FactFinderSdk\FactFinderSdkConstants;
12
13
class FactFinderSdkConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getEnvironment()
19
    {
20
        return $this->get(FactFinderSdkConstants::ENVIRONMENT);
21
    }
22
23
    /**
24
     * @return array
25
     */
26
    public function getFactFinderConfiguration()
27
    {
28
        return $this->get(FactFinderSdkConstants::ENVIRONMENT . $this->getEnvironment());
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getCsvDirectory()
35
    {
36
        return $this->get(FactFinderSdkConstants::CSV_DIRECTORY);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getLog4PhpConfigPath()
43
    {
44
        return $this->get(FactFinderSdkConstants::PHP_LOGGER_CONFIG_PATH);
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getDefaultProductsPerPage()
51
    {
52
        return $this->get(FactFinderSdkConstants::DEFAULT_PRODUCTS_PER_PAGE);
53
    }
54
55
    /**
56
     * @return array
57
     */
58
    public function getItemFields()
59
    {
60
        return $this->get(FactFinderSdkConstants::ITEM_FIELDS);
61
    }
62
63
    /**
64
     * @return bool
65
     */
66
    public function getRedirectIfOneResult()
67
    {
68
        return $this->get(FactFinderSdkConstants::REDIRECT_IF_ONE_RESULT, false);
69
    }
70
}
71