Response
Implements AppBundle\GatewaySDKPhp\Model\ResponseInterface
Table of contents
Properties
Visibility | Type | Name | Description |
---|---|---|---|
private | Symfony\Contracts\HttpClient\ResponseInterface | response |
Methods
public __construct(Symfony\Contracts\HttpClient\ResponseInterface $response)
returns void
public getStatusCode()
returns int
Gets response status code
public getContent()
returns string
Gets content from response
public toArray()
returns array
Converts the response to array
public getHeaders()
returns array
Gets response headers
public getHeader(string $headerName)
returns string
Gets response header by name