Configuration   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 62
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setDebug() 0 3 1
A getDebug() 0 3 1
A setBaseURL() 0 3 1
A getBaseURL() 0 3 1
1
<?php
2
/**
3
 * Configuration Class
4
 */
5
6
namespace Twigger\UnionCloud\API;
7
8
/**
9
 * Class Configuration
10
 *
11
 * @package Twigger\UnionCloud\API\Core
12
 */
13
class Configuration
14
{
15
16
    /**
17
     * The base url to make the API request to.
18
     *
19
     * Don't include a protocol or /api
20
     *
21
     * e.g 'bristol.unioncloud.org'
22
     *
23
     * @var string $baseURL
24
     */
25
    private $baseURL;
26
27
    /**
28
     * If true, more information about the request will be returned
29
     *
30
     * @var bool $debug
31
     */
32
    private $debug = false;
33
34
35
36
37
    /**
38
     * Get the property baseURL
39
     *
40
     * @return string
41
     */
42
    public function getBaseURL()
43
    {
44
        return $this->baseURL;
45
    }
46
47
    /**
48
     * Set the property baseURL
49
     *
50
     * @param string $baseURL
51
     */
52
    public function setBaseURL($baseURL)
53
    {
54
        $this->baseURL = 'https://'.$baseURL;
55
    }
56
57
    /**
58
     * Get the property debug
59
     *
60
     * @return bool
61
     */
62
    public function getDebug()
63
    {
64
        return $this->debug;
65
    }
66
67
    /**
68
     * Set the property debug
69
     *
70
     * @param bool $debug
71
     */
72
    public function setDebug($debug)
73
    {
74
        $this->debug = $debug;
75
    }
76
77
}