next = $start; } else { self::$incr++; $this->next = self::$incr; } $this->template_string = $template_string; } function next() { $generated = sprintf( $this->template_string , $this->next ); $this->next++; return $generated; } }