PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
pocketmine\utils\VersionString Class Reference
+ Collaboration diagram for pocketmine\utils\VersionString:

Public Member Functions

 __construct (private string $baseVersion, private bool $isDevBuild=false, private int $buildNumber=0)
 
 __toString ()
 
 compare (VersionString $target, bool $diff=false)
 
 getBaseVersion ()
 
 getBuild ()
 
 getFullVersion (bool $build=false)
 
 getMajor ()
 
 getMinor ()
 
 getNumber ()
 
 getPatch ()
 
 getSuffix ()
 
 isDev ()
 

Static Public Member Functions

static isValidBaseVersion (string $baseVersion)
 

Detailed Description

Manages PocketMine-MP version strings, and compares them

Definition at line 32 of file VersionString.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\utils\VersionString::__construct ( private string  $baseVersion,
private bool  $isDevBuild = false,
private int  $buildNumber = 0 
)

Definition at line 38 of file VersionString.php.

Member Function Documentation

◆ __toString()

pocketmine\utils\VersionString::__toString ( )

Definition at line 102 of file VersionString.php.

◆ compare()

pocketmine\utils\VersionString::compare ( VersionString  $target,
bool  $diff = false 
)

Definition at line 106 of file VersionString.php.

◆ getBaseVersion()

pocketmine\utils\VersionString::getBaseVersion ( )

Definition at line 62 of file VersionString.php.

◆ getBuild()

pocketmine\utils\VersionString::getBuild ( )

Definition at line 94 of file VersionString.php.

◆ getFullVersion()

pocketmine\utils\VersionString::getFullVersion ( bool  $build = false)

Definition at line 66 of file VersionString.php.

◆ getMajor()

pocketmine\utils\VersionString::getMajor ( )

Definition at line 78 of file VersionString.php.

◆ getMinor()

pocketmine\utils\VersionString::getMinor ( )

Definition at line 82 of file VersionString.php.

◆ getNumber()

pocketmine\utils\VersionString::getNumber ( )

Definition at line 58 of file VersionString.php.

◆ getPatch()

pocketmine\utils\VersionString::getPatch ( )

Definition at line 86 of file VersionString.php.

◆ getSuffix()

pocketmine\utils\VersionString::getSuffix ( )

Definition at line 90 of file VersionString.php.

◆ isDev()

pocketmine\utils\VersionString::isDev ( )

Definition at line 98 of file VersionString.php.

◆ isValidBaseVersion()

static pocketmine\utils\VersionString::isValidBaseVersion ( string  $baseVersion)
static

Definition at line 54 of file VersionString.php.


The documentation for this class was generated from the following file: