Passed
Pull Request — master (#115)
by
unknown
02:08
created

AbstractConfiguration   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 8
dl 0
loc 46
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getGuzzleConfig() 0 3 1
A setGuzzleConfig() 0 3 1
A setApiUrl() 0 4 1
A getApiUrl() 0 3 1
1
<?php
2
namespace Paranoia\Configuration;
3
4
class AbstractConfiguration
5
{
6
7
    /**
8
     * @var string
9
     */
10
    private $apiUrl;
11
12
    /**
13
     * @var array|null
14
     */
15
    private $guzzleConfig;
16
17
    /**
18
     * @param string $apiUrl
19
     *
20
     * @return $this
21
     */
22
    public function setApiUrl($apiUrl)
23
    {
24
        $this->apiUrl = $apiUrl;
25
        return $this;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getApiUrl()
32
    {
33
        return $this->apiUrl;
34
    }
35
36
    /**
37
     * @return null|array
38
     */
39
    public function getGuzzleConfig()
40
    {
41
        return $this->guzzleConfig;
42
    }
43
44
    /**
45
     * @param null|array $guzzleConfig
46
     */
47
    public function setGuzzleConfig($guzzleConfig)
48
    {
49
        $this->guzzleConfig = $guzzleConfig;
50
    }
51
52
}
53