commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ResourceDeletionErrorBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $message;
28
33 private $resource;
34
41 public function getMessage()
42 {
43 return $this->message;
44 }
45
50 public function getResource()
51 {
52 return $this->resource;
53 }
54
59 public function withMessage(?string $message)
60 {
61 $this->message = $message;
62
63 return $this;
64 }
65
70 public function withResource($resource)
71 {
72 $this->resource = $resource;
73
74 return $this;
75 }
76
77
78 public function build(): ResourceDeletionError
79 {
81 $this->message,
82 $this->resource
83 );
84 }
85
86 public static function of(): ResourceDeletionErrorBuilder
87 {
88 return new self();
89 }
90}