commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ApprovalFlowCompletedMessagePayloadBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
24{
29 private $status;
30
35 private $order;
36
43 public function getStatus()
44 {
45 return $this->status;
46 }
47
54 public function getOrder()
55 {
56 return $this->order instanceof OrderReferenceBuilder ? $this->order->build() : $this->order;
57 }
58
63 public function withStatus(?string $status)
64 {
65 $this->status = $status;
66
67 return $this;
68 }
69
74 public function withOrder(?OrderReference $order)
75 {
76 $this->order = $order;
77
78 return $this;
79 }
80
85 public function withOrderBuilder(?OrderReferenceBuilder $order)
86 {
87 $this->order = $order;
88
89 return $this;
90 }
91
93 {
95 $this->status,
96 $this->order instanceof OrderReferenceBuilder ? $this->order->build() : $this->order
97 );
98 }
99
101 {
102 return new self();
103 }
104}