FactFinderSdkConfig::getDefaultProductsPerPage()   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
 * 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
     * @api
17
     *
18
     * @return string
19
     */
20
    public function getEnvironment()
21
    {
22
        return $this->get(FactFinderSdkConstants::ENVIRONMENT);
23
    }
24
25
    /**
26
     * @api
27
     *
28
     * @return array
29
     */
30
    public function getFactFinderConfiguration()
31
    {
32
        return $this->get(FactFinderSdkConstants::ENVIRONMENT . $this->getEnvironment());
33
    }
34
35
    /**
36
     * @api
37
     *
38
     * @return string
39
     */
40
    public function getCsvDirectory()
41
    {
42
        return $this->get(FactFinderSdkConstants::CSV_DIRECTORY);
43
    }
44
45
    /**
46
     * @api
47
     *
48
     * @return string
49
     */
50
    public function getLog4PhpConfigPath()
51
    {
52
        return $this->get(FactFinderSdkConstants::PHP_LOGGER_CONFIG_PATH);
53
    }
54
55
    /**
56
     * @api
57
     *
58
     * @return string
59
     */
60
    public function getDefaultProductsPerPage()
61
    {
62
        return $this->get(FactFinderSdkConstants::DEFAULT_PRODUCTS_PER_PAGE);
63
    }
64
65
    /**
66
     * @api
67
     *
68
     * @return array
69
     */
70
    public function getItemFields()
71
    {
72
        return $this->get(FactFinderSdkConstants::ITEM_FIELDS);
73
    }
74
75
    /**
76
     * @api
77
     *
78
     * @return bool
79
     */
80
    public function getRedirectIfOneResult()
81
    {
82
        return $this->get(FactFinderSdkConstants::REDIRECT_IF_ONE_RESULT, false);
83
    }
84
}
85