SubsetItem::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 2
1
<?php
2
3
namespace drupol\phpartition;
4
5
/**
6
 * Class SubsetItem.
7
 *
8
 * @package drupol\phpartition
9
 */
10
class SubsetItem
11
{
12
13
    protected $key;
14
    protected $value;
15
    protected $item;
16
17
  /**
18
   * SubsetItem constructor.
19
   *
20
   * @param $key
21
   * @param $value
22
   * @param $item
23
   */
24
    public function __construct($key, $value, $item)
25
    {
26
        $this->key = $key;
27
        $this->value = $value;
28
        $this->item = $item;
29
    }
30
31
  /**
32
   * @return mixed
33
   */
34
    public function getValue()
35
    {
36
        return $this->value;
37
    }
38
39
  /**
40
   * @return mixed
41
   */
42
    public function getKey()
43
    {
44
        return $this->key;
45
    }
46
47
  /**
48
   * @return mixed
49
   */
50
    public function getItem()
51
    {
52
        return $this->item;
53
    }
54
}
55