public function setDirection($direction) { $this->direction = $direction; $this->queryParameters["Direction"] = $direction; }