commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Review
Review.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Review
;
10
11
use
Commercetools\Api\Models\Channel\ChannelReference
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\LastModifiedBy
;
15
use
Commercetools\Api\Models\Customer\CustomerReference
;
16
use
Commercetools\Api\Models\Product\ProductReference
;
17
use
Commercetools\Api\Models\State\StateReference
;
18
use
Commercetools\Api\Models\Type\CustomFields
;
19
use
Commercetools\Base\DateTimeImmutableCollection
;
20
use
Commercetools\Base\JsonObject
;
21
use DateTimeImmutable;
22
23
interface
Review
extends
BaseResource
24
{
25
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
26
public
const
FIELD_CREATED_BY
=
'createdBy'
;
27
public
const
FIELD_KEY
=
'key'
;
28
public
const
FIELD_UNIQUENESS_VALUE
=
'uniquenessValue'
;
29
public
const
FIELD_LOCALE
=
'locale'
;
30
public
const
FIELD_AUTHOR_NAME
=
'authorName'
;
31
public
const
FIELD_TITLE
=
'title'
;
32
public
const
FIELD_TEXT
=
'text'
;
33
public
const
FIELD_TARGET
=
'target'
;
34
public
const
FIELD_INCLUDED_IN_STATISTICS
=
'includedInStatistics'
;
35
public
const
FIELD_RATING
=
'rating'
;
36
public
const
FIELD_STATE
=
'state'
;
37
public
const
FIELD_CUSTOMER
=
'customer'
;
38
public
const
FIELD_CUSTOM
=
'custom'
;
39
46
public
function
getId
();
47
54
public
function
getVersion
();
55
62
public
function
getCreatedAt
();
63
70
public
function
getLastModifiedAt
();
71
78
public
function
getLastModifiedBy
();
79
86
public
function
getCreatedBy
();
87
94
public
function
getKey
();
95
102
public
function
getUniquenessValue
();
103
110
public
function
getLocale
();
111
118
public
function
getAuthorName
();
119
126
public
function
getTitle
();
127
134
public
function
getText
();
135
142
public
function
getTarget
();
143
152
public
function
getIncludedInStatistics
();
153
160
public
function
getRating
();
161
168
public
function
getState
();
169
176
public
function
getCustomer
();
177
184
public
function
getCustom
();
185
189
public
function
setId
(?
string
$id): void;
190
194
public
function
setVersion
(?
int
$version): void;
195
199
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
200
204
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
205
209
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
210
214
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
215
219
public
function
setKey
(?
string
$key): void;
220
224
public
function
setUniquenessValue
(?
string
$uniquenessValue): void;
225
229
public
function
setLocale
(?
string
$locale): void;
230
234
public
function
setAuthorName
(?
string
$authorName): void;
235
239
public
function
setTitle
(?
string
$title): void;
240
244
public
function
setText
(?
string
$text): void;
245
249
public
function
setTarget
(?
JsonObject
$target): void;
250
254
public
function
setIncludedInStatistics
(?
bool
$includedInStatistics): void;
255
259
public
function
setRating
(?
int
$rating): void;
260
264
public
function
setState
(?
StateReference
$state): void;
265
269
public
function
setCustomer
(?
CustomerReference
$customer): void;
270
274
public
function
setCustom
(?
CustomFields
$custom): void;
275
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Channel\ChannelReference
Definition:
ChannelReference.php:16
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Customer\CustomerReference
Definition:
CustomerReference.php:16
Commercetools\Api\Models\Product\ProductReference
Definition:
ProductReference.php:16
Commercetools\Api\Models\Review\Review
Definition:
Review.php:24
Commercetools\Api\Models\Review\Review\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Review\Review\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Review\Review\getCustom
getCustom()
Commercetools\Api\Models\Review\Review\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Review\Review\FIELD_RATING
const FIELD_RATING
Definition:
Review.php:35
Commercetools\Api\Models\Review\Review\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Review\Review\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Review.php:26
Commercetools\Api\Models\Review\Review\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
Review.php:38
Commercetools\Api\Models\Review\Review\getRating
getRating()
Commercetools\Api\Models\Review\Review\setState
setState(?StateReference $state)
Commercetools\Api\Models\Review\Review\FIELD_STATE
const FIELD_STATE
Definition:
Review.php:36
Commercetools\Api\Models\Review\Review\FIELD_TITLE
const FIELD_TITLE
Definition:
Review.php:31
Commercetools\Api\Models\Review\Review\getId
getId()
Commercetools\Api\Models\Review\Review\FIELD_TEXT
const FIELD_TEXT
Definition:
Review.php:32
Commercetools\Api\Models\Review\Review\setIncludedInStatistics
setIncludedInStatistics(?bool $includedInStatistics)
Commercetools\Api\Models\Review\Review\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Review\Review\setTitle
setTitle(?string $title)
Commercetools\Api\Models\Review\Review\FIELD_CUSTOMER
const FIELD_CUSTOMER
Definition:
Review.php:37
Commercetools\Api\Models\Review\Review\getLocale
getLocale()
Commercetools\Api\Models\Review\Review\setAuthorName
setAuthorName(?string $authorName)
Commercetools\Api\Models\Review\Review\setText
setText(?string $text)
Commercetools\Api\Models\Review\Review\getKey
getKey()
Commercetools\Api\Models\Review\Review\getState
getState()
Commercetools\Api\Models\Review\Review\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Review\Review\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Review\Review\FIELD_INCLUDED_IN_STATISTICS
const FIELD_INCLUDED_IN_STATISTICS
Definition:
Review.php:34
Commercetools\Api\Models\Review\Review\FIELD_LOCALE
const FIELD_LOCALE
Definition:
Review.php:29
Commercetools\Api\Models\Review\Review\FIELD_UNIQUENESS_VALUE
const FIELD_UNIQUENESS_VALUE
Definition:
Review.php:28
Commercetools\Api\Models\Review\Review\setCustomer
setCustomer(?CustomerReference $customer)
Commercetools\Api\Models\Review\Review\getCustomer
getCustomer()
Commercetools\Api\Models\Review\Review\getAuthorName
getAuthorName()
Commercetools\Api\Models\Review\Review\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\Review\Review\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Review\Review\getText
getText()
Commercetools\Api\Models\Review\Review\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Review\Review\setId
setId(?string $id)
Commercetools\Api\Models\Review\Review\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Review\Review\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Review.php:25
Commercetools\Api\Models\Review\Review\FIELD_KEY
const FIELD_KEY
Definition:
Review.php:27
Commercetools\Api\Models\Review\Review\FIELD_AUTHOR_NAME
const FIELD_AUTHOR_NAME
Definition:
Review.php:30
Commercetools\Api\Models\Review\Review\setKey
setKey(?string $key)
Commercetools\Api\Models\Review\Review\getTitle
getTitle()
Commercetools\Api\Models\Review\Review\FIELD_TARGET
const FIELD_TARGET
Definition:
Review.php:33
Commercetools\Api\Models\Review\Review\getVersion
getVersion()
Commercetools\Api\Models\Review\Review\getTarget
getTarget()
Commercetools\Api\Models\Review\Review\setUniquenessValue
setUniquenessValue(?string $uniquenessValue)
Commercetools\Api\Models\Review\Review\getUniquenessValue
getUniquenessValue()
Commercetools\Api\Models\Review\Review\getIncludedInStatistics
getIncludedInStatistics()
Commercetools\Api\Models\Review\Review\setTarget
setTarget(?JsonObject $target)
Commercetools\Api\Models\Review\Review\setRating
setRating(?int $rating)
Commercetools\Api\Models\State\StateReference
Definition:
StateReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Review
Definition:
Review.php:9
Generated by
1.9.1