commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Review
ReviewDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Review
;
10
11
use
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
;
12
use
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
;
13
use
Commercetools\Api\Models\Product\ProductResourceIdentifier
;
14
use
Commercetools\Api\Models\State\StateResourceIdentifier
;
15
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
19
interface
ReviewDraft
extends
JsonObject
20
{
21
public
const
FIELD_KEY
=
'key'
;
22
public
const
FIELD_UNIQUENESS_VALUE
=
'uniquenessValue'
;
23
public
const
FIELD_LOCALE
=
'locale'
;
24
public
const
FIELD_AUTHOR_NAME
=
'authorName'
;
25
public
const
FIELD_TITLE
=
'title'
;
26
public
const
FIELD_TEXT
=
'text'
;
27
public
const
FIELD_TARGET
=
'target'
;
28
public
const
FIELD_STATE
=
'state'
;
29
public
const
FIELD_RATING
=
'rating'
;
30
public
const
FIELD_CUSTOMER
=
'customer'
;
31
public
const
FIELD_CUSTOM
=
'custom'
;
32
39
public
function
getKey
();
40
48
public
function
getUniquenessValue
();
49
56
public
function
getLocale
();
57
64
public
function
getAuthorName
();
65
72
public
function
getTitle
();
73
80
public
function
getText
();
81
88
public
function
getTarget
();
89
96
public
function
getState
();
97
106
public
function
getRating
();
107
114
public
function
getCustomer
();
115
122
public
function
getCustom
();
123
127
public
function
setKey
(?
string
$key): void;
128
132
public
function
setUniquenessValue
(?
string
$uniquenessValue): void;
133
137
public
function
setLocale
(?
string
$locale): void;
138
142
public
function
setAuthorName
(?
string
$authorName): void;
143
147
public
function
setTitle
(?
string
$title): void;
148
152
public
function
setText
(?
string
$text): void;
153
157
public
function
setTarget
(?
JsonObject
$target): void;
158
162
public
function
setState
(?
StateResourceIdentifier
$state): void;
163
167
public
function
setRating
(?
int
$rating): void;
168
172
public
function
setCustomer
(?
CustomerResourceIdentifier
$customer): void;
173
177
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
178
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Channel\ChannelResourceIdentifier
Definition:
ChannelResourceIdentifier.php:16
Commercetools\Api\Models\Customer\CustomerResourceIdentifier
Definition:
CustomerResourceIdentifier.php:16
Commercetools\Api\Models\Product\ProductResourceIdentifier
Definition:
ProductResourceIdentifier.php:16
Commercetools\Api\Models\Review\ReviewDraft
Definition:
ReviewDraft.php:20
Commercetools\Api\Models\Review\ReviewDraft\setAuthorName
setAuthorName(?string $authorName)
Commercetools\Api\Models\Review\ReviewDraft\setTitle
setTitle(?string $title)
Commercetools\Api\Models\Review\ReviewDraft\setTarget
setTarget(?JsonObject $target)
Commercetools\Api\Models\Review\ReviewDraft\getCustom
getCustom()
Commercetools\Api\Models\Review\ReviewDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Review\ReviewDraft\setCustomer
setCustomer(?CustomerResourceIdentifier $customer)
Commercetools\Api\Models\Review\ReviewDraft\getTarget
getTarget()
Commercetools\Api\Models\Review\ReviewDraft\FIELD_TITLE
const FIELD_TITLE
Definition:
ReviewDraft.php:25
Commercetools\Api\Models\Review\ReviewDraft\FIELD_UNIQUENESS_VALUE
const FIELD_UNIQUENESS_VALUE
Definition:
ReviewDraft.php:22
Commercetools\Api\Models\Review\ReviewDraft\setRating
setRating(?int $rating)
Commercetools\Api\Models\Review\ReviewDraft\FIELD_STATE
const FIELD_STATE
Definition:
ReviewDraft.php:28
Commercetools\Api\Models\Review\ReviewDraft\setState
setState(?StateResourceIdentifier $state)
Commercetools\Api\Models\Review\ReviewDraft\FIELD_TEXT
const FIELD_TEXT
Definition:
ReviewDraft.php:26
Commercetools\Api\Models\Review\ReviewDraft\getState
getState()
Commercetools\Api\Models\Review\ReviewDraft\setUniquenessValue
setUniquenessValue(?string $uniquenessValue)
Commercetools\Api\Models\Review\ReviewDraft\getUniquenessValue
getUniquenessValue()
Commercetools\Api\Models\Review\ReviewDraft\FIELD_AUTHOR_NAME
const FIELD_AUTHOR_NAME
Definition:
ReviewDraft.php:24
Commercetools\Api\Models\Review\ReviewDraft\getKey
getKey()
Commercetools\Api\Models\Review\ReviewDraft\FIELD_TARGET
const FIELD_TARGET
Definition:
ReviewDraft.php:27
Commercetools\Api\Models\Review\ReviewDraft\getLocale
getLocale()
Commercetools\Api\Models\Review\ReviewDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Review\ReviewDraft\getRating
getRating()
Commercetools\Api\Models\Review\ReviewDraft\FIELD_KEY
const FIELD_KEY
Definition:
ReviewDraft.php:21
Commercetools\Api\Models\Review\ReviewDraft\FIELD_RATING
const FIELD_RATING
Definition:
ReviewDraft.php:29
Commercetools\Api\Models\Review\ReviewDraft\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
ReviewDraft.php:30
Commercetools\Api\Models\Review\ReviewDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ReviewDraft.php:31
Commercetools\Api\Models\Review\ReviewDraft\getTitle
getTitle()
Commercetools\Api\Models\Review\ReviewDraft\getAuthorName
getAuthorName()
Commercetools\Api\Models\Review\ReviewDraft\getCustomer
getCustomer()
Commercetools\Api\Models\Review\ReviewDraft\FIELD_LOCALE
const FIELD_LOCALE
Definition:
ReviewDraft.php:23
Commercetools\Api\Models\Review\ReviewDraft\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Review\ReviewDraft\getText
getText()
Commercetools\Api\Models\Review\ReviewDraft\setText
setText(?string $text)
Commercetools\Api\Models\State\StateResourceIdentifier
Definition:
StateResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Review
Definition:
Review.php:9
Generated by
1.9.1