commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel Class 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)
 
- Public Member Functions inherited from Commercetools\Base\JsonObjectModel
 get (string $field)
 
 with (?callable $callable=null)
 
- Public Member Functions inherited from Commercetools\Base\BaseJsonObject
 jsonSerialize ()
 

Public Attributes

const DISCRIMINATOR_VALUE = 'setMetaKeywords'
 
- Public Attributes inherited from Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction
const FIELD_META_KEYWORDS = 'metaKeywords'
 
const FIELD_STAGED = 'staged'
 
- Public Attributes inherited from Commercetools\Api\Models\Product\ProductUpdateAction
const DISCRIMINATOR_FIELD = 'action'
 
const FIELD_ACTION = 'action'
 

Protected Attributes

 $action
 
 $metaKeywords
 
 $staged
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\BaseJsonObject
static of ($data=null)
 
static fromStdClass (?stdClass $data=null)
 
static fromArray (array $data=[])
 
- Protected Member Functions inherited from Commercetools\Base\JsonObjectModel
 toArray ()
 
- Protected Member Functions inherited from Commercetools\Base\BaseJsonObject
 raw (string $field)
 
 getRawDataArray ()
 

Detailed Description

Definition at line 22 of file ProductSetMetaKeywordsActionModel.php.

Constructor & Destructor Documentation

◆ __construct()

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.

Member Function Documentation

◆ getAction()

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getAction ( )
Returns
null|string

@psalm-var ?string $data

Implements Commercetools\Api\Models\Product\ProductUpdateAction.

Definition at line 61 of file ProductSetMetaKeywordsActionModel.php.

◆ getMetaKeywords()

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getMetaKeywords ( )

Value to set. If empty, any existing value will be removed.

Returns
null|LocalizedString

@psalm-var stdClass|array<string, mixed>|null $data

Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.

Definition at line 81 of file ProductSetMetaKeywordsActionModel.php.

◆ getStaged()

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::getStaged ( )

If true, only the staged metaKeywords is updated. If false, both the current and staged metaKeywords are updated.

Returns
null|bool

@psalm-var ?bool $data

Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.

Definition at line 102 of file ProductSetMetaKeywordsActionModel.php.

◆ setMetaKeywords()

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::setMetaKeywords ( ?LocalizedString  $metaKeywords)
Parameters
?LocalizedString$metaKeywords

Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.

Definition at line 120 of file ProductSetMetaKeywordsActionModel.php.

◆ setStaged()

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::setStaged ( ?bool  $staged)
Parameters
?bool$staged

Implements Commercetools\Api\Models\Product\ProductSetMetaKeywordsAction.

Definition at line 128 of file ProductSetMetaKeywordsActionModel.php.

Member Data Documentation

◆ $action

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::$action
protected

Definition at line 29 of file ProductSetMetaKeywordsActionModel.php.

◆ $metaKeywords

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::$metaKeywords
protected

Definition at line 35 of file ProductSetMetaKeywordsActionModel.php.

◆ $staged

Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::$staged
protected

Definition at line 41 of file ProductSetMetaKeywordsActionModel.php.

◆ DISCRIMINATOR_VALUE

const Commercetools\Api\Models\Product\ProductSetMetaKeywordsActionModel::DISCRIMINATOR_VALUE = 'setMetaKeywords'

Definition at line 24 of file ProductSetMetaKeywordsActionModel.php.


The documentation for this class was generated from the following file: