MapEntry::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * @author Maxim Sokolovsky
4
 */
5
6
namespace WS\Utils\Collections;
7
8
class MapEntry
9
{
10
    private $key;
11
    private $value;
12
13 51
    public function __construct($key, $value)
14
    {
15 51
        $this->key = $key;
16 51
        $this->value = $value;
17 51
    }
18
19
    /**
20
     * @return mixed
21
     */
22 22
    public function getKey()
23
    {
24 22
        return $this->key;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30 15
    public function getValue()
31
    {
32 15
        return $this->value;
33
    }
34
}
35