Embed version informations.
| package |
Default |
|---|
__construct(array<mixed,integer> $version, array<mixed,string> $stabilityVersion = array(), $buildMetadata = '')
array<mixed,integer>list of numbers of the version (ex: [1,2,3] for 1.2.3)
array<mixed,string>list of stability informations that are informations following a '-' in a semantic version (ex: ['alpha', '2'] for 1.2.3-alpha.2)
__toString()
getBranchVersion()
getBuildMetadata()
getMajor()
getMinor()
getNextMajorVersion() : string
stringthe next version
getNextMinorVersion() : string
stringthe next version
getNextPatchVersion() : string
stringthe next version
getNextTailVersion() : string
If the version has a stability information (alpha, beta etc..), it returns only the version without stability version.
stringthe next version
getPatch()
getStabilityVersion()
getTailNumbers()
getVersionArray()
hasMinor()
hasPatch()
toString(boolean $withPatch = true)
booleantrue, it returns always x.y.z even if no patch or minor version was given
version :
stabilityVersion :
buildMetadata :