private function setPath($path) { if (strpos($path, '?') !== false) { throw new Exception\RequestException('Path must not have hard-coded query parameters.'); } $this->path = ltrim($path, '/'); }