A single SemVer version
Inheritance: extends Naneau\SemVer\Version\Versionable
Beispiel #1
0
 /**
  * Create a new Version that discards the entity information of build and
  * originalVersionString
  *
  * @return Version
  */
 public function cleanCopy()
 {
     $version = new Version();
     $version->setMajor($this->getMajor());
     $version->setMinor($this->getMinor());
     $version->setPatch($this->getPatch());
     if ($this->hasPreRelease()) {
         $version->preRelease = clone $this->getPreRelease();
     }
     return $version;
 }