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
Namespace
Drupal\graphql\GraphQL\BuffersCode
public function __construct(array $result, $status = 200, array $headers = []) {
parent::__construct('', $status, $headers);
$this->result = $result;
}