27 lines
567 B
PHP
27 lines
567 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
class zanodeTest
|
|
{
|
|
private $objectModel;
|
|
|
|
public function __construct()
|
|
{
|
|
global $tester;
|
|
$this->objectModel = $tester->loadModel('zanode');
|
|
}
|
|
|
|
/**
|
|
* 魔术方法,调用zanode模型中的方法。
|
|
* Magic method, call the method in the zanode model.
|
|
*
|
|
* @param string $name
|
|
* @param array $arguments
|
|
* @access public
|
|
* @return mixed
|
|
*/
|
|
public function __call($name, $arguments)
|
|
{
|
|
return $this->objectModel->$name(...$arguments);
|
|
}
|
|
}
|