commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
GraphQLResponse.php
1 <?php
2 
3 declare(strict_types=1);
10 
13 
14 interface GraphQLResponse extends JsonObject
15 {
16  public const FIELD_DATA = 'data';
17  public const FIELD_ERRORS = 'errors';
18 
23  public function getData();
24 
29  public function getErrors();
30 
34  public function setData($data): void;
35 
39  public function setErrors(?GraphQLErrorCollection $errors): void;
40 }
setErrors(?GraphQLErrorCollection $errors)