diff --git a/Client.php b/Client.php index b2f4405..055dfee 100644 --- a/Client.php +++ b/Client.php @@ -53,11 +53,11 @@ class Client // TODO: Implement __get() method. $getter = 'get' . ucfirst($name); if (method_exists($this, $getter)) { - return $this->$getter(); + return $this->abstracts->$getter(); } else if (method_exists($this, $name)) { - return $this->$name(); + return $this->abstracts->$name(); } else if (property_exists($this, $name)) { - return $this->$name; + return $this->abstracts->$name; } else { throw new Exception('Property|Method "' . $name . '" does not exist.'); }