AkeneoPimConfig   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
eloc 6
c 1
b 0
f 1
dl 0
loc 50
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getClientSecret() 0 3 1
A getPassword() 0 3 1
A getUsername() 0 3 1
A getClientId() 0 3 1
A getHost() 0 3 1
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\Service\AkeneoPim;
9
10
use Spryker\Service\Kernel\AbstractBundleConfig;
0 ignored issues
show
Bug introduced by
The type Spryker\Service\Kernel\AbstractBundleConfig was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use SprykerEco\Shared\AkeneoPim\AkeneoPimConstants;
12
13
class AkeneoPimConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @api
17
     *
18
     * @return string
19
     */
20
    public function getHost(): string
21
    {
22
        return $this->get(AkeneoPimConstants::HOST);
23
    }
24
25
    /**
26
     * @api
27
     *
28
     * @return string
29
     */
30
    public function getUsername(): string
31
    {
32
        return $this->get(AkeneoPimConstants::USERNAME);
33
    }
34
35
    /**
36
     * @api
37
     *
38
     * @return string
39
     */
40
    public function getPassword(): string
41
    {
42
        return $this->get(AkeneoPimConstants::PASSWORD);
43
    }
44
45
    /**
46
     * @api
47
     *
48
     * @return string
49
     */
50
    public function getClientId(): string
51
    {
52
        return $this->get(AkeneoPimConstants::CLIENT_ID);
53
    }
54
55
    /**
56
     * @api
57
     *
58
     * @return string
59
     */
60
    public function getClientSecret(): string
61
    {
62
        return $this->get(AkeneoPimConstants::CLIENT_SECRET);
63
    }
64
}
65