Completed
Branch master (eb975e)
by Basarab
06:37 queued 04:53
created

Item::getDimensionsCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
4
namespace Hexogen\KDTree;
5
6
class Item extends Point implements ItemInterface
7
{
8
    private $id;
9
10
    /**
11
     * Item constructor.
12
     * @param $id
13
     * @param array $dValues
14
     */
15 36
    public function __construct($id, array $dValues)
16
    {
17 36
        parent::__construct($dValues);
18 36
        $this->id = $id;
19 36
    }
20
21
    /**
22
     * get item id
23
     *
24
     * @return mixed item id
25
     */
26 18
    public function getId()
27
    {
28 18
        return $this->id;
29
    }
30
}
31