Symfony\Component\Workflow\Dumper\GraphvizDumper::findPlaces PHP Méthode

findPlaces() protected méthode

protected findPlaces ( Symfony\Component\Workflow\Definition $definition, Symfony\Component\Workflow\Marking $marking = null )
$definition Symfony\Component\Workflow\Definition
$marking Symfony\Component\Workflow\Marking
    protected function findPlaces(Definition $definition, Marking $marking = null)
    {
        $places = array();
        foreach ($definition->getPlaces() as $place) {
            $attributes = array();
            if ($place === $definition->getInitialPlace()) {
                $attributes['style'] = 'filled';
            }
            if ($marking && $marking->has($place)) {
                $attributes['color'] = '#FF0000';
                $attributes['shape'] = 'doublecircle';
            }
            $places[$place] = array('attributes' => $attributes);
        }
        return $places;
    }