You are here

public function SubRequestResponse::__construct in GraphQL 8.3

SubrequestResponse constructor.

Parameters

array $result: The request result.

int $status: The response status code.

array $headers: An array of response headers.

File

src/GraphQL/Buffers/SubRequestResponse.php, line 29

Class

SubRequestResponse

Namespace

Drupal\graphql\GraphQL\Buffers

Code

public function __construct(array $result, $status = 200, array $headers = []) {
  parent::__construct('', $status, $headers);
  $this->result = $result;
}