代码功能更新

This commit is contained in:
root
2025-05-18 07:42:27 +00:00
parent 7fc1d422a1
commit 4a90c41da2
2083 changed files with 695218 additions and 3 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;
}
}