for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
*/
namespace Commercetools\Core\Helper\State\Renderer;
use Commercetools\Core\Model\State\State;
class NodeRenderer
{
const COMMAND_COLOR = '#555555';
* @param State $state
* @return string
public function render(State $state)
$graph = '';
$color = static::COMMAND_COLOR;
$graph .= ' node [label=' . $state->getKey() . ',color="",fontcolor="' . $color . '"' .
',style="",shape="plaintext",fontname="Arial"] ' .
'{ state_' . $state->getKey() . ' } ' . PHP_EOL;
return $graph;
}