mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Documentation, format class, no modification. (#7628)
This commit is contained in:
@@ -6,14 +6,23 @@
|
||||
class software {
|
||||
|
||||
/**
|
||||
* version
|
||||
* Returns the version number as a string.
|
||||
*
|
||||
* @return string The version number in the format 'major.minor.patch'.
|
||||
*/
|
||||
public static function version() {
|
||||
return '5.5.3';
|
||||
}
|
||||
|
||||
/**
|
||||
* numeric_version
|
||||
* Returns the version number as a single integer.
|
||||
*
|
||||
* This function takes the version string, splits it into its components, and combines
|
||||
* them into a single integer value. The integer is calculated by multiplying each component
|
||||
* by an increasing power of 100 (e.g., 10,000 for the major version, 1,000 for the minor version,
|
||||
* and 100 for the patch version).
|
||||
*
|
||||
* @return int The numeric version number.
|
||||
*/
|
||||
public static function numeric_version() {
|
||||
$v = explode('.', software::version());
|
||||
|
||||
Reference in New Issue
Block a user