= 1' ); } $this->prefix = $prefix; $this->counter = $start; } /** * @param string|null $label node label, will be generated if not given. * * @return string */ public function getLabel( $label = null ) { if ( $label === null ) { $label = $this->prefix . $this->counter; $this->counter ++; } return $label; } }