commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ApprovalRuleSetApproversActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
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
56 {
57 $this->approvers = $approvers;
58
59 return $this;
60 }
61
63 {
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}