| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class AttributeDumper implements StateVisitor |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * An array having the state name as key and the attributes of this state. |
||
| 11 | * @var string[][] |
||
| 12 | */ |
||
| 13 | private $structure = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return string[][] |
||
| 17 | */ |
||
| 18 | 1 | public function getStructure(): array |
|
| 19 | { |
||
| 20 | 1 | return $this->structure; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $name |
||
| 25 | * @param string[] $attributes |
||
| 26 | */ |
||
| 27 | 1 | public function visitState(string $name, array $attributes): void |
|
| 34 | 1 | } |
|
| 35 | } |
||
| 36 |