Compare commits

...

1 Commits

Author SHA1 Message Date
as2252258 eb42c8e0a2 eee 2026-07-03 16:15:52 +08:00
+11 -7
View File
@@ -52,15 +52,19 @@ class Client
{
// TODO: Implement __get() method.
$getter = 'get' . ucfirst($name);
if (method_exists($this, $getter)) {
if (method_exists($this->abstracts, $getter)) {
return $this->abstracts->$getter();
} else if (method_exists($this, $name)) {
return $this->abstracts->$name();
} else if (property_exists($this, $name)) {
return $this->abstracts->$name;
} else {
throw new Exception('Property|Method "' . $name . '" does not exist.');
}
if (method_exists($this->abstracts, $name)) {
return $this->abstracts->$name();
}
if (property_exists($this->abstracts, $name)) {
return $this->abstracts->$name;
}
throw new Exception('Property|Method "' . $name . '" does not exist.');
}
}