Skip to content

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Feb 20, 2025
1 parent 90a50e5 commit 6c7caf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand All @@ -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)) {
Expand Down

0 comments on commit 6c7caf3

Please sign in to comment.