commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ReviewDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 }
setCustomer(?CustomerResourceIdentifier $customer)
setState(?StateResourceIdentifier $state)
setUniquenessValue(?string $uniquenessValue)
setCustom(?CustomFieldsDraft $custom)