public function setGranularity($granularity) { $this->granularity = $granularity; $this->queryParameters["Granularity"] = $granularity; }