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

Item::validateDValues()   B

Complexity

Conditions 5
Paths 4

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 5

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 7
cts 7
cp 1
rs 8.8571
c 0
b 0
f 0
cc 5
eloc 6
nc 4
nop 1
crap 5
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