![]() |
commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
|
Inherits Commercetools\Base\JsonObjectModel, and Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.
Public Member Functions | |
__construct (?LocalizedString $metaKeywords=null, ?bool $staged=null, ?string $action=null) | |
getAction () | |
getMetaKeywords () | |
getStaged () | |
setMetaKeywords (?LocalizedString $metaKeywords) | |
setStaged (?bool $staged) | |
![]() | |
get (string $field) | |
with (?callable $callable=null) | |
![]() | |
jsonSerialize () | |
Public Attributes | |
const | DISCRIMINATOR_VALUE = 'setMetaKeywords' |
![]() | |
const | FIELD_META_KEYWORDS = 'metaKeywords' |
const | FIELD_STAGED = 'staged' |
![]() | |
const | DISCRIMINATOR_FIELD = 'action' |
const | FIELD_ACTION = 'action' |
Protected Attributes | |
$action | |
$metaKeywords | |
$staged | |
Additional Inherited Members | |
![]() | |
static | of ($data=null) |
static | fromStdClass (?stdClass $data=null) |
static | fromArray (array $data=[]) |
![]() | |
toArray () | |
![]() | |
raw (string $field) | |
getRawDataArray () | |
Definition at line 22 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::__construct | ( | ?LocalizedString | $metaKeywords = null , |
?bool | $staged = null , |
||
?string | $action = null |
||
) |
@psalm-suppress MissingParamType
Definition at line 47 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getAction | ( | ) |
@psalm-var ?string $data
Implements Commercetools\Api\Models\Product\ProductUpdateAction.
Definition at line 61 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getMetaKeywords | ( | ) |
Value to set. If empty, any existing value will be removed.
@psalm-var stdClass|array<string, mixed>|null $data
Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.
Definition at line 81 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getStaged | ( | ) |
If true
, only the staged metaKeywords
is updated. If false
, both the current and staged metaKeywords
are updated.
@psalm-var ?bool $data
Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.
Definition at line 102 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::setMetaKeywords | ( | ?LocalizedString | $metaKeywords | ) |
?LocalizedString | $metaKeywords |
Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.
Definition at line 120 of file ProductSetMetaKeywordsActionModel.php.
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::setStaged | ( | ?bool | $staged | ) |
?bool | $staged |
Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.
Definition at line 128 of file ProductSetMetaKeywordsActionModel.php.
|
protected |
Definition at line 29 of file ProductSetMetaKeywordsActionModel.php.
|
protected |
Definition at line 35 of file ProductSetMetaKeywordsActionModel.php.
|
protected |
Definition at line 41 of file ProductSetMetaKeywordsActionModel.php.
const Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::DISCRIMINATOR_VALUE = 'setMetaKeywords' |
Definition at line 24 of file ProductSetMetaKeywordsActionModel.php.