MapEntry   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 28
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
namespace Tebru\Collection;
8
9
/**
10
 * Class MapEntry
11
 *
12
 * This is the object that gets returned as part of a call to
13
 * [@see MapInterface::entrySet()].
14
 *
15
 * @author Nate Brunette <[email protected]>
16
 */
17
class MapEntry
18
{
19
    /**
20
     * The map key
21
     *
22
     * @var mixed
23
     */
24
    public $key;
25
26
    /**
27
     * The map value
28
     *
29
     * @var mixed
30
     */
31
    public $value;
32
33
    /**
34
     * Constructor
35
     *
36
     * @param mixed $key
37
     * @param mixed $value
38
     */
39
    public function __construct($key, $value)
40
    {
41
        $this->key = $key;
42
        $this->value = $value;
43
    }
44
}
45