commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
GraphQl
GraphQLResponse.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\GraphQl
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
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
}
Commercetools\Api\Models\GraphQl\GraphQLErrorCollection
Definition:
GraphQLErrorCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\GraphQl\GraphQLResponse
Definition:
GraphQLResponse.php:15
Commercetools\Api\Models\GraphQl\GraphQLResponse\setErrors
setErrors(?GraphQLErrorCollection $errors)
Commercetools\Api\Models\GraphQl\GraphQLResponse\FIELD_ERRORS
const FIELD_ERRORS
Definition:
GraphQLResponse.php:17
Commercetools\Api\Models\GraphQl\GraphQLResponse\FIELD_DATA
const FIELD_DATA
Definition:
GraphQLResponse.php:16
Commercetools\Api\Models\GraphQl\GraphQLResponse\getErrors
getErrors()
Commercetools\Api\Models\GraphQl\GraphQLResponse\setData
setData($data)
Commercetools\Api\Models\GraphQl\GraphQLResponse\getData
getData()
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\GraphQl
Definition:
GraphQLError.php:9
Generated by
1.9.1