Pyrech\ComposerChangelogs\Version::getPretty PHP Méthode

getPretty() public méthode

public getPretty ( ) : string
Résultat string
    public function getPretty()
    {
        return $this->pretty;
    }

Usage Example

 /**
  * Get the version to use for the compare url.
  *
  * For dev versions, it returns the commit short hash in full pretty version.
  *
  * @param Version $version
  *
  * @return string
  */
 protected function getCompareVersion(Version $version)
 {
     if ($version->isDev()) {
         return substr($version->getFullPretty(), strlen($version->getPretty()) + 1);
     }
     return $version->getPretty();
 }
All Usage Examples Of Pyrech\ComposerChangelogs\Version::getPretty