|
|
@ -155,9 +155,8 @@ class Object implements Arrayable |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function __call($name, $params) |
|
|
|
public function __call($name, $params) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$getter = 'get' . $name; |
|
|
|
if ($this->canGetProperty($name)) { |
|
|
|
if (method_exists($this, $getter)) { |
|
|
|
$func = $this->$name; |
|
|
|
$func = $this->$getter(); |
|
|
|
|
|
|
|
if ($func instanceof \Closure) { |
|
|
|
if ($func instanceof \Closure) { |
|
|
|
return call_user_func_array($func, $params); |
|
|
|
return call_user_func_array($func, $params); |
|
|
|
} |
|
|
|
} |
|
|
|