commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
AttributeGroup
AttributeGroupRemoveAttributeActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\AttributeGroup
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
AttributeGroupRemoveAttributeActionBuilder
implements
Builder
22
{
27
private
$attribute;
28
35
public
function
getAttribute
()
36
{
37
return
$this->attribute instanceof
AttributeReferenceBuilder
? $this->attribute->
build
() : $this->attribute;
38
}
39
44
public
function
withAttribute
(?
AttributeReference
$attribute)
45
{
46
$this->attribute = $attribute;
47
48
return
$this;
49
}
50
55
public
function
withAttributeBuilder
(?
AttributeReferenceBuilder
$attribute)
56
{
57
$this->attribute = $attribute;
58
59
return
$this;
60
}
61
62
public
function
build
():
AttributeGroupRemoveAttributeAction
63
{
64
return
new
AttributeGroupRemoveAttributeActionModel
(
65
$this->attribute instanceof
AttributeReferenceBuilder
? $this->attribute->
build
() : $this->attribute
66
);
67
}
68
69
public
static
function
of
():
AttributeGroupRemoveAttributeActionBuilder
70
{
71
return
new
self
();
72
}
73
}
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:22
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder\build
build()
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:62
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder\withAttribute
withAttribute(?AttributeReference $attribute)
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:44
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder\withAttributeBuilder
withAttributeBuilder(?AttributeReferenceBuilder $attribute)
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:55
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder\of
static of()
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:69
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionBuilder\getAttribute
getAttribute()
Definition:
AttributeGroupRemoveAttributeActionBuilder.php:35
Commercetools\Api\Models\AttributeGroup\AttributeGroupRemoveAttributeActionModel
Definition:
AttributeGroupRemoveAttributeActionModel.php:21
Commercetools\Api\Models\AttributeGroup\AttributeReferenceBuilder
Definition:
AttributeReferenceBuilder.php:22
Commercetools\Api\Models\AttributeGroup\AttributeReferenceBuilder\build
build()
Definition:
AttributeReferenceBuilder.php:52
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\AttributeGroupRemoveAttributeAction
Definition:
AttributeGroupRemoveAttributeAction.php:15
Commercetools\Api\Models\AttributeGroup\AttributeReference
Definition:
AttributeReference.php:15
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