ItemFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 3 1
1
<?php
2
3
4
namespace Hexogen\KDTree;
5
6
use Hexogen\KDTree\Interfaces\ItemFactoryInterface;
7
use Hexogen\KDTree\Interfaces\ItemInterface;
8
9
class ItemFactory implements ItemFactoryInterface
10
{
11
    /**
12
     * @api
13
     * @param int $id
14
     * @param array $dValues
15
     * @return ItemInterface
16
     */
17 18
    public function make(int $id, array $dValues) : ItemInterface
18
    {
19 18
        return new Item($id, $dValues);
20
    }
21
}
22