compatibleMetrics)) { throw new \InvalidArgumentException(esc_html("Incompatible metric given: $metric")); } $this->client = $client; $this->endpoint .= $metric; } public function get(): array { return $this->client->get($this->endpoint); } }