public function getVersionByLabel($label) { if (!$this->hasVersionLabel($label)) { throw new VersionException("No label '{$label}'"); } return $this->versionLabels[$label]; }