Hazaar
Version
The version class

Handy for comparing version numbers such as 1.0 vs 1.3 or even 2.3.6 vs 1.6.3.7.32

Summary
MethodsPropertiesConstants
No constants
Properties
$version
$version
Methods
__construct()
__construct($version)
Version constructor.
__tostring()
__tostring() : string
Magic method to output the version as a string
compareTo()
compareTo($that) : int
Compare the version to another version.

Returns an integer indicating the result:

  • 0 Indicates the versions are equal.
  • -1 Means the vesion is less than $that.
  • 1 Means the version is greater than $that.
equals()
equals($that) : bool
Compares two versions to see if they are equal.
get()
get()