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

FactFinderSdkConfig::getRedirectIfOneResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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