Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class TraverseStepItem implements TraverseStepPairInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var EdgeInterface|null edge or null |
||
17 | */ |
||
18 | protected ?EdgeInterface $edge; |
||
19 | /** |
||
20 | * @var VertexInterface vertex |
||
21 | */ |
||
22 | protected VertexInterface $vertex; |
||
23 | |||
24 | /** |
||
25 | * EdgeVertexPair constructor |
||
26 | * @param EdgeInterface|null $edge edge or null |
||
27 | * @param VertexInterface $vertex vertex |
||
28 | */ |
||
29 | public function __construct(?EdgeInterface $edge, VertexInterface $vertex) |
||
30 | { |
||
31 | $this->edge = $edge; |
||
32 | $this->vertex = $vertex; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | public function getEdge(): ?EdgeInterface |
||
39 | { |
||
40 | return $this->edge; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function getVertex(): VertexInterface |
||
49 | } |
||
50 | } |
||
51 |