public function setVersionPattern($pattern) { $this->versionPattern = (string) $pattern; return $this; }