Field::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
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