Puli\Repository\Resource\GenericResource::getVersions PHP Method

getVersions() public method

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