Field   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 38
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getKey() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace PhpHocon\Token;
4
5
class Field
6
{
7
    /**
8
     * @var Key
9
     */
10
    private $key;
11
12
    /**
13
     * @var Value
14
     */
15
    private $value;
16
17
    /**
18
     * @param Key $key
19
     * @param Value $value
20
     */
21
    public function __construct(Key $key, Value $value)
22
    {
23
        $this->key = $key;
24
        $this->value = $value;
25
    }
26
27
    /**
28
     * @return Key
29
     */
30
    public function getKey()
31
    {
32
        return $this->key;
33
    }
34
35
    /**
36
     * @return Value
37
     */
38
    public function getValue()
39
    {
40
        return $this->value;
41
    }
42
}
43