From d59c561514d714032b21605474af87b95f733bbf Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 3 Sep 2026 13:23:52 +0545 Subject: [PATCH] feat(usage): expose the remaining Context dimension getters --- src/Appwrite/Usage/Context.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Appwrite/Usage/Context.php b/src/Appwrite/Usage/Context.php index 5fedc1b454..e6e047894d 100644 --- a/src/Appwrite/Usage/Context.php +++ b/src/Appwrite/Usage/Context.php @@ -122,6 +122,11 @@ class Context return $this; } + public function getCountry(): string + { + return $this->country; + } + public function setRegion(string $region): static { $this->region = $region; @@ -152,12 +157,22 @@ class Context return $this; } + public function getHostname(): string + { + return $this->hostname; + } + public function setUserAgent(string $userAgent): static { $this->userAgent = $userAgent; return $this; } + public function getUserAgent(): string + { + return $this->userAgent; + } + public function setIp(string $ip): static { $this->ip = $ip; @@ -175,12 +190,22 @@ class Context return $this; } + public function getSdk(): string + { + return $this->sdk; + } + public function setSdkVersion(string $sdkVersion): static { $this->sdkVersion = $sdkVersion; return $this; } + public function getSdkVersion(): string + { + return $this->sdkVersion; + } + /** * Add a metric with the metadata active at the time it was emitted. */