| Total Complexity | 4 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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) |
||
| 75 | } |
||
| 76 | |||
| 77 | } |