代码功能更新

This commit is contained in:
root
2025-05-18 07:29:01 +00:00
commit 12b03531c5
2083 changed files with 695218 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
/**
* 设置错误和获取错误公用方法定义,任何类都可以使用这两个方法
*/
namespace laytp\traits;
trait Error
{
protected $_error = null;
public function getError()
{
return $this->_error;
}
public function setError($error)
{
$this->_error = $error;
return false;
}
}