VersionString
in package
Manages PocketMine-MP version strings, and compares them
Table of Contents
- $baseVersion : string
- $build : int
- $development : bool
- $major : int
- $minor : int
- $patch : int
- $suffix : string
- __construct() : mixed
- __toString() : string
- compare() : int
- getBaseVersion() : string
- getBuild() : int
- getFullVersion() : string
- getMajor() : int
- getMinor() : int
- getNumber() : int
- getPatch() : int
- getSuffix() : string
- isDev() : bool
- isValidBaseVersion() : bool
Properties
$baseVersion
private
string
$baseVersion
$build
private
int
$build
$development
private
bool
$development
= false
$major
private
int
$major
$minor
private
int
$minor
$patch
private
int
$patch
$suffix
private
string
$suffix
Methods
__construct()
public
__construct(string $baseVersion[, bool $isDevBuild = false ][, int $buildNumber = 0 ]) : mixed
Parameters
- $baseVersion : string
- $isDevBuild : bool = false
- $buildNumber : int = 0
Return values
mixed —__toString()
public
__toString() : string
Return values
string —compare()
public
compare(VersionString $target[, bool $diff = false ]) : int
Parameters
- $target : VersionString
- $diff : bool = false
Return values
int —getBaseVersion()
public
getBaseVersion() : string
Return values
string —getBuild()
public
getBuild() : int
Return values
int —getFullVersion()
public
getFullVersion([bool $build = false ]) : string
Parameters
- $build : bool = false
Return values
string —getMajor()
public
getMajor() : int
Return values
int —getMinor()
public
getMinor() : int
Return values
int —getNumber()
public
getNumber() : int
Return values
int —getPatch()
public
getPatch() : int
Return values
int —getSuffix()
public
getSuffix() : string
Return values
string —isDev()
public
isDev() : bool
Return values
bool —isValidBaseVersion()
public
static isValidBaseVersion(string $baseVersion) : bool
Parameters
- $baseVersion : string