WithoutEdges::andTo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
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