public function getVersions() { if (!$this->getRepository()) { return new VersionList($this->getRepositoryPath(), array($this)); } return $this->getRepository()->getVersions($this->getRepositoryPath()); }