Completed
Push — master ( 8c892e...6a431f )
by Pol
11:58
created

SubsetItem::getitem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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