ApiKeyService::setWeatherKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Lii\Service;
4
5
/**
6
 * A plain service class with no dependencies.
7
 */
8
class ApiKeyService
9
{
10
//     private $message = null;
11
    private $ipkey = null;
12
    private $weatherkey = null;
13
14
//     public function setMessage(string $message) : void
15
//     {
16
//         $this->message = $message;
17
//     }
18
19 1
    public function setIpKey(string $ipkey) : void
20
    {
21 1
        $this->ipkey = $ipkey;
22 1
    }
23
24 1
    public function setWeatherKey(string $weatherkey) : void
25
    {
26 1
        $this->weatherkey = $weatherkey;
27 1
    }
28
29
//     public function useService() : string
30
//     {
31
//         return "This service loads a message from the config file.<br>&gt; '{$this->message}'";
32
//     }
33
34 1
    public function getIpKey()
35
    {
36 1
        return $this->ipkey;
37
    }
38
39 1
    public function getWeatherKey()
40
    {
41 1
        return $this->weatherkey;
42
    }
43
}
44