commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ToolCustomizationBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class ToolCustomizationBuilder implements Builder
22{
27 private $tool;
28
33 private $description;
34
39 private $parameters;
40
47 public function getTool()
48 {
49 return $this->tool;
50 }
51
58 public function getDescription()
59 {
60 return $this->description;
61 }
62
69 public function getParameters()
70 {
71 return $this->parameters;
72 }
73
78 public function withTool(?string $tool)
79 {
80 $this->tool = $tool;
81
82 return $this;
83 }
84
89 public function withDescription(?string $description)
90 {
91 $this->description = $description;
92
93 return $this;
94 }
95
100 public function withParameters(?ParameterOverrideCollection $parameters)
101 {
102 $this->parameters = $parameters;
103
104 return $this;
105 }
106
107
108 public function build(): ToolCustomization
109 {
110 return new ToolCustomizationModel(
111 $this->tool,
112 $this->description,
113 $this->parameters
114 );
115 }
116
117 public static function of(): ToolCustomizationBuilder
118 {
119 return new self();
120 }
121}