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
57 public function getFields()
58 {
59 return $this->fields instanceof FieldContainerBuilder ? $this->fields->build() : $this->fields;
60 }
61
66 public function withType(?TypeResourceIdentifier $type)
67 {
68 $this->type = $type;
69
70 return $this;
71 }
72
77 public function withFields(?FieldContainer $fields)
78 {
79 $this->fields = $fields;
80
81 return $this;
82 }
83
89 {
90 $this->type = $type;
91
92 return $this;
93 }
94
99 public function withFieldsBuilder(?FieldContainerBuilder $fields)
100 {
101 $this->fields = $fields;
102
103 return $this;
104 }
105
107 {
109 $this->type instanceof TypeResourceIdentifierBuilder ? $this->type->build() : $this->type,
110 $this->fields instanceof FieldContainerBuilder ? $this->fields->build() : $this->fields
111 );
112 }
113
115 {
116 return new self();
117 }
118}