Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | class NodeRenderer |
||
11 | { |
||
12 | const COMMAND_COLOR = '#555555'; |
||
13 | |||
14 | /** |
||
15 | * @param State $state |
||
16 | * @return string |
||
17 | */ |
||
18 | public function render(State $state) |
||
19 | { |
||
20 | $graph = ''; |
||
21 | $color = static::COMMAND_COLOR; |
||
22 | |||
23 | $graph .= ' node [label=' . $state->getKey() . ',color="",fontcolor="' . $color . '"' . |
||
24 | ',style="",shape="plaintext",fontname="Arial"] ' . |
||
25 | '{ state_' . $state->getKey() . ' } ' . PHP_EOL; |
||
26 | |||
27 | return $graph; |
||
28 | } |
||
30 |