client; } /** * @param string $name * @return mixed * @throws Exception */ public function __get(string $name): mixed { if (property_exists($this, $name)) { return $this->$name; } $method = 'get' . ucfirst($name); if (method_exists($this, $method)) { return $this->{$method}(); } return Snowflake::app()->get($name); } }