commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ApprovalRule
ApprovalRuleSetApproversActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ApprovalRule
;
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
ApprovalRuleSetApproversActionBuilder
implements
Builder
22
{
27
private
$approvers;
28
35
public
function
getApprovers
()
36
{
37
return
$this->approvers instanceof
ApproverHierarchyDraftBuilder
? $this->approvers->
build
() : $this->approvers;
38
}
39
44
public
function
withApprovers
(?
ApproverHierarchyDraft
$approvers)
45
{
46
$this->approvers = $approvers;
47
48
return
$this;
49
}
50
55
public
function
withApproversBuilder
(?
ApproverHierarchyDraftBuilder
$approvers)
56
{
57
$this->approvers = $approvers;
58
59
return
$this;
60
}
61
62
public
function
build
():
ApprovalRuleSetApproversAction
63
{
64
return
new
ApprovalRuleSetApproversActionModel
(
65
$this->approvers instanceof
ApproverHierarchyDraftBuilder
? $this->approvers->
build
() : $this->approvers
66
);
67
}
68
69
public
static
function
of
():
ApprovalRuleSetApproversActionBuilder
70
{
71
return
new
self
();
72
}
73
}
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder
Definition:
ApprovalRuleSetApproversActionBuilder.php:22
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder\of
static of()
Definition:
ApprovalRuleSetApproversActionBuilder.php:69
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder\withApproversBuilder
withApproversBuilder(?ApproverHierarchyDraftBuilder $approvers)
Definition:
ApprovalRuleSetApproversActionBuilder.php:55
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder\getApprovers
getApprovers()
Definition:
ApprovalRuleSetApproversActionBuilder.php:35
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder\build
build()
Definition:
ApprovalRuleSetApproversActionBuilder.php:62
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionBuilder\withApprovers
withApprovers(?ApproverHierarchyDraft $approvers)
Definition:
ApprovalRuleSetApproversActionBuilder.php:44
Commercetools\Api\Models\ApprovalRule\ApprovalRuleSetApproversActionModel
Definition:
ApprovalRuleSetApproversActionModel.php:21
Commercetools\Api\Models\ApprovalRule\ApproverHierarchyDraftBuilder
Definition:
ApproverHierarchyDraftBuilder.php:22
Commercetools\Api\Models\ApprovalRule\ApproverHierarchyDraftBuilder\build
build()
Definition:
ApproverHierarchyDraftBuilder.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\ApprovalRule\ApprovalRuleSetApproversAction
Definition:
ApprovalRuleSetApproversAction.php:15
Commercetools\Api\Models\ApprovalRule\ApproverHierarchyDraft
Definition:
ApproverHierarchyDraft.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ApprovalRule
Definition:
ApprovalRule.php:9
Generated by
1.9.1