Create software.php

This commit is contained in:
FusionPBX 2019-11-07 22:58:21 -07:00 committed by GitHub
parent 2c5979ab7c
commit b9d053a3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
<?php
/**
* software class
*
* @method string version
*/
if (!class_exists('software')) {
class software {
/**
* version
*/
public function version() {
return '4.5.10';
}
/**
* numeric_version
*/
public function numeric_version() {
$v = explode('.', $this->version());
$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
return $n;
}
}
}
?>