Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class EiKeyValue |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | private $key; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $value; |
||
17 | |||
18 | /** |
||
19 | * @return string |
||
20 | */ |
||
21 | public function getKey() |
||
22 | { |
||
23 | return $this->key; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param string $key |
||
28 | * @return EiKeyValue |
||
29 | */ |
||
30 | public function withKey($key) |
||
31 | { |
||
32 | $new = clone $this; |
||
33 | $new->key = $key; |
||
34 | |||
35 | return $new; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getValue() |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $value |
||
48 | * @return EiKeyValue |
||
49 | */ |
||
50 | public function withValue($value) |
||
56 | } |
||
57 | |||
58 | |||
61 |