ShortPathCalculator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A calculate() 0 5 1
1
<?php
2
3
namespace GGGGino\WarehousePath\Calculator;
4
5
use GGGGino\WarehousePath\Entity\Place;
6
7
class ShortPathCalculator extends FastCalculator
8
{
9
    /**
10
     * The time the program will loop for the best path
11
     *
12
     * @var int
13
     */
14
    private $loopComplexity = 2;
0 ignored issues
show
introduced by
The private property $loopComplexity is not used, and could be removed.
Loading history...
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function calculate($arrayNodes, $matrix)
20
    {
21
        $arraySorted = parent::calculate($arrayNodes, $matrix);
22
23
        return $arraySorted;
24
    }
25
}