/** * Return dot element string representation * * @return string */ public function __toString() { return sprintf('node[label=<%1$s%2$s>,tooltip="%6$s",height="0.6",shape="%5$s",style="filled",color="transparent",fillcolor="%3$s",fontcolor="%4$s"]{ state_%1$s };', $this->state, $this->buildFlags($this->flags, $this->style->getAltColor()), $this->style->getColor(), $this->style->getText(), $this->style->getStyle(), $this->comment); }