commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
All Classes Namespaces Functions Variables Pages
ApprovalFlowApprovedMessagePayloadBuilder.php
1<?php
2
3declare(strict_types=1);
10
20use stdClass;
21
26{
31 private $associate;
32
37 private $order;
38
45 public function getAssociate()
46 {
47 return $this->associate instanceof CustomerReferenceBuilder ? $this->associate->build() : $this->associate;
48 }
49
56 public function getOrder()
57 {
58 return $this->order instanceof OrderReferenceBuilder ? $this->order->build() : $this->order;
59 }
60
65 public function withAssociate(?CustomerReference $associate)
66 {
67 $this->associate = $associate;
68
69 return $this;
70 }
71
76 public function withOrder(?OrderReference $order)
77 {
78 $this->order = $order;
79
80 return $this;
81 }
82
88 {
89 $this->associate = $associate;
90
91 return $this;
92 }
93
98 public function withOrderBuilder(?OrderReferenceBuilder $order)
99 {
100 $this->order = $order;
101
102 return $this;
103 }
104
106 {
108 $this->associate instanceof CustomerReferenceBuilder ? $this->associate->build() : $this->associate,
109 $this->order instanceof OrderReferenceBuilder ? $this->order->build() : $this->order
110 );
111 }
112
114 {
115 return new self();
116 }
117}