* Correct the upgradeTest file name.

This commit is contained in:
wangxuepeng
2023-12-18 14:49:02 +08:00
parent 441f1d90a1
commit 2ca0a00b7e
3 changed files with 15 additions and 28 deletions
+1
View File
@@ -9388,6 +9388,7 @@ class upgradeModel extends model
}
/**
* 检查是否包含一致性错误。
* Check has consistency error or not.
*
* @access public
+14
View File
@@ -28,4 +28,18 @@ class upgradeTest
}
return trim($return, ';');
}
/**
* __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。
* __call magic method, if the method is simple, you can call it directly, no need to write a method.
*
* @param string $method
* @param array $args
* @access public
* @return mixed
*/
public function __call(string $method, array $args): mixed
{
return $this->objectModel->$method($args);
}
}
-28
View File
@@ -1,28 +0,0 @@
<?php
declare(strict_types=1);
class upgradeTest
{
/* upgrade模型实例化变量。 */
/* upgrade model instantiation variable. */
private $objectModel;
public function __construct()
{
global $tester;
$this->objectModel = $tester->loadModel('upgrade');
}
/**
* __call魔术方法,如果比较简单的方法可以直接调用,不需要单独写方法。
* __call magic method, if the method is simple, you can call it directly, no need to write a method.
*
* @param string $method
* @param array $args
* @access public
* @return mixed
*/
public function __call(string $method, array $args): mixed
{
return $this->objectModel->$method($args);
}
}