commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AttributeGroupSetDescriptionActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
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
66 {
68 $this->description instanceof LocalizedStringBuilder ? $this->description->build() : $this->description
69 );
70 }
71
73 {
74 return new self();
75 }
76}