clientConfig = $clientConfig; $this->headers = $headers; $this->body = $body; $this->auth = $auth; $this->method = $method; $this->uri = $uri; $this->encode = $encode; } /** * Returns gateway client configuration * * @return array */ public function getClientConfig() { return $this->clientConfig; } /** * Returns method used to place request * * @return string|int */ public function getMethod() { return (string)$this->method; } /** * Returns headers * * @return array */ public function getHeaders() { return $this->headers; } /** * Returns request body * * @return array|string */ public function getBody() { return $this->body; } /** * Returns URI * * @return string */ public function getUri() { return (string)$this->uri; } /** * @return boolean */ public function shouldEncode() { return $this->encode; } /** * Returns Auth username * * @return string */ public function getAuthUsername() { return $this->auth[self::AUTH_USERNAME]; } /** * Returns Auth password * * @return string */ public function getAuthPassword() { return $this->auth[self::AUTH_PASSWORD]; } }