commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
WarningObjectBuilder.php
1<?php
2
3declare(strict_types=1);
10
20use stdClass;
21
25final class WarningObjectBuilder implements Builder
26{
31 private $message;
32
39 public function getMessage()
40 {
41 return $this->message;
42 }
43
48 public function withMessage(?string $message)
49 {
50 $this->message = $message;
51
52 return $this;
53 }
54
55
56 public function build(): WarningObject
57 {
58 return new WarningObjectModel(
59 $this->message
60 );
61 }
62
63 public static function of(): WarningObjectBuilder
64 {
65 return new self();
66 }
67}