Passed
Push — master ( 7d597c...1de5f6 )
by Smoren
01:47
created

TraverseDirect   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNextVertexes() 0 5 1
1
<?php
2
3
namespace Smoren\GraphTools\Traverse;
4
5
use Smoren\GraphTools\Conditions\Interfaces\FilterConditionInterface;
6
use Smoren\GraphTools\Models\Interfaces\VertexInterface;
7
use Smoren\GraphTools\Structs\Interfaces\TraverseStepIteratorInterface;
8
9
/**
10
 * Class for direct traversing of the directional graph
11
 * @author <[email protected]> Smoren
12
 */
13
class TraverseDirect extends Traverse
14
{
15
    /**
16
     * @inheritDoc
17
     */
18
    protected function getNextVertexes(
19
        VertexInterface $vertex,
20
        FilterConditionInterface $condition
21
    ): TraverseStepIteratorInterface {
22
        return $this->repository->getNextVertexes($vertex, $condition);
23
    }
24
}
25