Link Search Menu Expand Document (external link)

Response

view source

Implements AppBundle\GatewaySDKPhp\Model\ResponseInterface

Table of contents
  1. Response
    1. Properties
    2. Methods
      1. public __construct(Symfony\Contracts\HttpClient\ResponseInterface $response)
      2. public getStatusCode()
      3. public getContent()
      4. public toArray()
      5. public getHeaders()
      6. public getHeader(string $headerName)

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