From 6c7caf32f8cf33509988dbb255b0874f33bdcca8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 20 Feb 2025 15:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model.php b/src/Model.php index b8552b29..1943c03b 100644 --- a/src/Model.php +++ b/src/Model.php @@ -176,7 +176,7 @@ protected function getOptions(): array * @param array $options 值 * @return void */ - protected function setOptions(array $options) + public function setOptions(array $options) { foreach ($options as $name => $value) { $this->setOption($name, $value); @@ -191,7 +191,7 @@ protected function setOptions(array $options) * * @return void */ - protected function setOption(string $name, $value) + public function setOption(string $name, $value) { self::$weakMap[$this][$name] = $value; } @@ -204,7 +204,7 @@ protected function setOption(string $name, $value) * * @return mixed */ - protected function getOption(string $name, $default = null) + public function getOption(string $name, $default = null) { // 兼容读取3.0版本的属性参数定义 if (property_exists($this, $name) && isset($this->$name)) {