commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AttributeGroup
AttributeGroupSetDescriptionActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AttributeGroup
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Common\LocalizedStringBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
AttributeGroupSetDescriptionActionBuilder
implements
Builder
24
{
29
private
$description;
30
38
public
function
getDescription
()
39
{
40
return
$this->description instanceof
LocalizedStringBuilder
? $this->description->
build
() : $this->description;
41
}
42
47
public
function
withDescription
(?
LocalizedString
$description)
48
{
49
$this->description = $description;
50
51
return
$this;
52
}
53
58
public
function
withDescriptionBuilder
(?
LocalizedStringBuilder
$description)
59
{
60
$this->description = $description;
61
62
return
$this;
63
}
64
65
public
function
build
():
AttributeGroupSetDescriptionAction
66
{
67
return
new
AttributeGroupSetDescriptionActionModel
(
68
$this->description instanceof
LocalizedStringBuilder
? $this->description->
build
() : $this->description
69
);
70
}
71
72
public
static
function
of
():
AttributeGroupSetDescriptionActionBuilder
73
{
74
return
new
self
();
75
}
76
}
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder
Definition:
AttributeGroupSetDescriptionActionBuilder.php:24
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder\withDescription
withDescription(?LocalizedString $description)
Definition:
AttributeGroupSetDescriptionActionBuilder.php:47
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder\of
static of()
Definition:
AttributeGroupSetDescriptionActionBuilder.php:72
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder\getDescription
getDescription()
Definition:
AttributeGroupSetDescriptionActionBuilder.php:38
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder\withDescriptionBuilder
withDescriptionBuilder(?LocalizedStringBuilder $description)
Definition:
AttributeGroupSetDescriptionActionBuilder.php:58
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionBuilder\build
build()
Definition:
AttributeGroupSetDescriptionActionBuilder.php:65
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionActionModel
Definition:
AttributeGroupSetDescriptionActionModel.php:23
Commercetools\Api\Models\Common\LocalizedStringBuilder
Definition:
LocalizedStringBuilder.php:20
Commercetools\Api\Models\Common\LocalizedStringBuilder\build
build()
Definition:
LocalizedStringBuilder.php:42
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\AttributeGroup\AttributeGroupSetDescriptionAction
Definition:
AttributeGroupSetDescriptionAction.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\AttributeGroup
Definition:
AttributeGroup.php:9
Generated by
1.9.1