commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ExtensionNoResponseErrorBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
22 {
27  private $message;
28 
33  private $extensionId;
34 
39  private $extensionKey;
40 
47  public function getMessage()
48  {
49  return $this->message;
50  }
51 
58  public function getExtensionId()
59  {
60  return $this->extensionId;
61  }
62 
69  public function getExtensionKey()
70  {
71  return $this->extensionKey;
72  }
73 
78  public function withMessage(?string $message)
79  {
80  $this->message = $message;
81 
82  return $this;
83  }
84 
89  public function withExtensionId(?string $extensionId)
90  {
91  $this->extensionId = $extensionId;
92 
93  return $this;
94  }
95 
100  public function withExtensionKey(?string $extensionKey)
101  {
102  $this->extensionKey = $extensionKey;
103 
104  return $this;
105  }
106 
107 
108  public function build(): ExtensionNoResponseError
109  {
111  $this->message,
112  $this->extensionId,
113  $this->extensionKey
114  );
115  }
116 
117  public static function of(): ExtensionNoResponseErrorBuilder
118  {
119  return new self();
120  }
121 }