for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Drupal\graphql\GraphQL\Buffers;
use Symfony\Component\HttpFoundation\Response;
class SubRequestResponse extends Response {
/**
* The request result.
*
* @var mixed
*/
protected $result;
* SubrequestResponse constructor.
* @param mixed $result
* @param int $status
* The response status code.
* @param array $headers
* An array of response headers.
public function __construct(array $result, $status = 200, array $headers = []) {
parent::__construct('', $status, $headers);
$this->result = $result;
}
* Gets the request result.
* @return mixed
public function getResult() {
return $this->result;