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

TraverseDirect::getNextVertexes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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