commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
PaymentAddInterfaceInteractionActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
20use stdClass;
21
26{
31 private $type;
32
37 private $fields;
38
45 public function getType()
46 {
47 return $this->type instanceof TypeResourceIdentifierBuilder ? $this->type->build() : $this->type;
48 }
49
56 public function getFields()
57 {
58 return $this->fields instanceof FieldContainerBuilder ? $this->fields->build() : $this->fields;
59 }
60
65 public function withType(?TypeResourceIdentifier $type)
66 {
67 $this->type = $type;
68
69 return $this;
70 }
71
76 public function withFields(?FieldContainer $fields)
77 {
78 $this->fields = $fields;
79
80 return $this;
81 }
82
88 {
89 $this->type = $type;
90
91 return $this;
92 }
93
98 public function withFieldsBuilder(?FieldContainerBuilder $fields)
99 {
100 $this->fields = $fields;
101
102 return $this;
103 }
104
106 {
108 $this->type instanceof TypeResourceIdentifierBuilder ? $this->type->build() : $this->type,
109 $this->fields instanceof FieldContainerBuilder ? $this->fields->build() : $this->fields
110 );
111 }
112
114 {
115 return new self();
116 }
117}