PHP Класс Naneau\SemVer\Version

A single SemVer version
Наследование: extends Naneau\SemVer\Version\Versionable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__toString ( ) : string String representation of this Version
cleanCopy ( ) : Version Create a new Version that discards the entity information of build and originalVersionString
getBuild ( ) : Naneau\SemVer\Version\Build Get the build
getOriginalVersion ( ) : string Get the original version string
getPreRelease ( ) : Naneau\SemVer\Version\PreRelease Get the pre release version
hasBuild ( ) : boolean Does this Version have a Build?
hasPreRelease ( ) : boolean Does this Version have a pre release?
next ( Version | string | null $base = null ) : Version Get the next logical version relative to the provided base version. If no base is supplied, base will be the same as the current version.
setBuild ( Naneau\SemVer\Version\Build $build ) : Version Set the build
setOriginalVersion ( $version ) Set the original version string for later usage
setPreRelease ( Naneau\SemVer\Version\PreRelease $preRelease ) : Version Set the pre release version

Описание методов

__toString() публичный Метод

String representation of this Version
public __toString ( ) : string
Результат string

cleanCopy() публичный Метод

Create a new Version that discards the entity information of build and originalVersionString
public cleanCopy ( ) : Version
Результат Version

getBuild() публичный Метод

Get the build
public getBuild ( ) : Naneau\SemVer\Version\Build
Результат Naneau\SemVer\Version\Build

getOriginalVersion() публичный Метод

Get the original version string
public getOriginalVersion ( ) : string
Результат string

getPreRelease() публичный Метод

Get the pre release version
public getPreRelease ( ) : Naneau\SemVer\Version\PreRelease
Результат Naneau\SemVer\Version\PreRelease

hasBuild() публичный Метод

Does this Version have a Build?
public hasBuild ( ) : boolean
Результат boolean

hasPreRelease() публичный Метод

Does this Version have a pre release?
public hasPreRelease ( ) : boolean
Результат boolean

next() публичный Метод

Get the next logical version relative to the provided base version. If no base is supplied, base will be the same as the current version.
public next ( Version | string | null $base = null ) : Version
$base Version | string | null
Результат Version

setBuild() публичный Метод

Set the build
public setBuild ( Naneau\SemVer\Version\Build $build ) : Version
$build Naneau\SemVer\Version\Build
Результат Version

setOriginalVersion() публичный Метод

Set the original version string for later usage
public setOriginalVersion ( $version )
$version

setPreRelease() публичный Метод

Set the pre release version
public setPreRelease ( Naneau\SemVer\Version\PreRelease $preRelease ) : Version
$preRelease Naneau\SemVer\Version\PreRelease
Результат Version