Documentation, format class, no modification. (#7628)

This commit is contained in:
frytimo
2025-11-18 21:49:39 -04:00
committed by GitHub
parent adfc4cc469
commit bbe7b9e9b7
37 changed files with 5051 additions and 4144 deletions

View File

@@ -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());