Skip to content

Commit 6c7caf3

Browse files
committed
改进
1 parent 90a50e5 commit 6c7caf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Model.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected function getOptions(): array
176176
* @param array $options 值
177177
* @return void
178178
*/
179-
protected function setOptions(array $options)
179+
public function setOptions(array $options)
180180
{
181181
foreach ($options as $name => $value) {
182182
$this->setOption($name, $value);
@@ -191,7 +191,7 @@ protected function setOptions(array $options)
191191
*
192192
* @return void
193193
*/
194-
protected function setOption(string $name, $value)
194+
public function setOption(string $name, $value)
195195
{
196196
self::$weakMap[$this][$name] = $value;
197197
}
@@ -204,7 +204,7 @@ protected function setOption(string $name, $value)
204204
*
205205
* @return mixed
206206
*/
207-
protected function getOption(string $name, $default = null)
207+
public function getOption(string $name, $default = null)
208208
{
209209
// 兼容读取3.0版本的属性参数定义
210210
if (property_exists($this, $name) && isset($this->$name)) {

0 commit comments

Comments
 (0)