Total Complexity | 9 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Pair { |
||
6 | private $key; |
||
7 | private $value; |
||
8 | |||
9 | 8 | public function __construct($key, $value) { |
|
10 | 8 | $this->key = $this->getScalar($key); |
|
11 | 6 | $this->value = $value; |
|
12 | 6 | } |
|
13 | |||
14 | 4 | public function getKey() { |
|
15 | 4 | return $this->key; |
|
16 | } |
||
17 | |||
18 | 2 | public function getValue() { |
|
19 | 2 | return $this->value; |
|
20 | } |
||
21 | |||
22 | 8 | private function getScalar($key) { |
|
33 | } |
||
34 | } |