WithoutEdges   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A poorThing() 0 3 1
A andTo() 0 3 1
A gather() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\Pathfinder\Graph\Builder;
4
5
use Stratadox\Pathfinder\Graph\Edges;
6
use Stratadox\Pathfinder\Graph\Roads;
7
8
final class WithoutEdges implements EdgeDefinition
9
{
10
    public static function poorThing(): EdgeDefinition
11
    {
12
        return new self();
13
    }
14
15
    public function andTo(string $target, float $cost = 1.0): EdgeDefinition
16
    {
17
        return WithEdge::to($target, $cost);
18
    }
19
20
    public function gather(): Edges
21
    {
22
        return Roads::none();
23
    }
24
}
25