Index   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 63
wmc 5
lcom 0
cbo 0
ccs 14
cts 14
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getKey() 0 4 1
A getName() 0 4 1
A getUrl() 0 4 1
A getAffiliateId() 0 4 1
1
<?php
2
3
namespace Jobles\Core\Index;
4
5
final class Index
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $key;
12
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
18
    /**
19
     * @var string
20
     */
21
    private $url;
22
23
    /**
24
     * @var string
25
     */
26
    private $affiliateId;
27
28 45
    public function __construct(string $key, string $name, string $url, string $affiliateId)
29
    {
30 45
        $this->key = $key;
31 45
        $this->name = $name;
32 45
        $this->url = $url;
33 45
        $this->affiliateId = $affiliateId;
34 45
    }
35
36
    /**
37
     * @return string
38
     */
39 2
    public function getKey()
40
    {
41 2
        return $this->key;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 2
    public function getName()
48
    {
49 2
        return $this->name;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 2
    public function getUrl()
56
    {
57 2
        return $this->url;
58
    }
59
60
    /**
61
     * @return string
62
     */
63 2
    public function getAffiliateId()
64
    {
65 2
        return $this->affiliateId;
66
    }
67
}
68