Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class TransitionDumper implements TransitionVisitor |
||
8 | { |
||
9 | /** |
||
10 | * @var string[][][] |
||
11 | */ |
||
12 | private $structure = []; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $currentTransition; |
||
18 | |||
19 | /** |
||
20 | * @return string[][][] |
||
21 | */ |
||
22 | 2 | public function getStructure(): array |
|
23 | { |
||
24 | 2 | return $this->structure; |
|
25 | } |
||
26 | |||
27 | 2 | public function visitTransition(string $name): void |
|
28 | { |
||
29 | 2 | $this->currentTransition = $name; |
|
30 | 2 | } |
|
31 | |||
32 | /** |
||
33 | * @param string $state |
||
34 | * @param string[] $attributes |
||
35 | */ |
||
36 | 2 | public function visitFromState(string $state, array $attributes): void |
|
39 | 2 | } |
|
40 | |||
41 | /** |
||
42 | * @param string $state |
||
43 | * @param string[] $attributes |
||
44 | */ |
||
45 | 2 | public function visitToState(string $state, array $attributes): void |
|
48 | 2 | } |
|
49 | } |
||
50 |