Example #1
0
 /**
  * Returns the node label.
  *
  * @param  \Finite\State\StateInterface $state
  * @return string
  */
 private function getNodeLabel(StateInterface $state)
 {
     $id = $state->getName();
     $props = $state->getProperties();
     if (count($props) > 0 && $this->configuration->renderProperties()) {
         foreach (array_keys($props) as $prop) {
             $id .= "\\n* " . $prop;
         }
     }
     return $id;
 }