class SubRequestResponse in GraphQL 8.3
Hierarchy
- class \Drupal\graphql\GraphQL\Buffers\SubRequestResponse extends \Symfony\Component\HttpFoundation\Response implements RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTrait
Expanded class hierarchy of SubRequestResponse
2 files declare their use of SubRequestResponse
- SubRequestBuffer.php in src/
GraphQL/ Buffers/ SubRequestBuffer.php - SubrequestExtractionController.php in src/
Controller/ SubrequestExtractionController.php
File
- src/
GraphQL/ Buffers/ SubRequestResponse.php, line 9
Namespace
Drupal\graphql\GraphQL\BuffersView source
class SubRequestResponse extends Response implements RefinableCacheableDependencyInterface {
use RefinableCacheableDependencyTrait;
/**
* The request result.
*
* @var array
*/
protected $result;
/**
* SubrequestResponse constructor.
*
* @param array $result
* The request 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 array
* The request result.
*/
public function getResult() {
return $this->result;
}
}