Completed
Push — master ( b8da3f...f66325 )
by Emily
10s
created

OrderedPair::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * This file is part of the Composite Utils package.
4
 *
5
 * (c) Emily Shepherd <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the
8
 * LICENSE.md file that was distributed with this source code.
9
 *
10
 * @package spaark/composite-utils
11
 * @author Emily Shepherd <[email protected]>
12
 * @license MIT
13
 */
14
15
namespace Spaark\CompositeUtils\Model\Collection;
16
17
/**
18
 */
19
class OrderedPair extends Pair
20
{
21
    /**
22
     * @var int
23
     */
24
    protected $index;
25
26 25
    public function __construct($index, $key, $value)
27
    {
28 25
        parent::__construct($key, $value);
29
30 25
        $this->index = $index;
31 25
    }
32
}
33
34