commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Error
EditPreviewFailedErrorBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Error
;
10
11
use
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailure
;
12
use
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
EditPreviewFailedErrorBuilder
implements
Builder
24
{
29
private
$message;
30
35
private
$result;
36
43
public
function
getMessage
()
44
{
45
return
$this->message;
46
}
47
54
public
function
getResult
()
55
{
56
return
$this->result instanceof
OrderEditPreviewFailureBuilder
? $this->result->
build
() : $this->result;
57
}
58
63
public
function
withMessage
(?
string
$message)
64
{
65
$this->message = $message;
66
67
return
$this;
68
}
69
74
public
function
withResult
(?
OrderEditPreviewFailure
$result)
75
{
76
$this->result = $result;
77
78
return
$this;
79
}
80
85
public
function
withResultBuilder
(?
OrderEditPreviewFailureBuilder
$result)
86
{
87
$this->result = $result;
88
89
return
$this;
90
}
91
92
public
function
build
():
EditPreviewFailedError
93
{
94
return
new
EditPreviewFailedErrorModel
(
95
$this->message,
96
$this->result instanceof
OrderEditPreviewFailureBuilder
? $this->result->
build
() : $this->result
97
);
98
}
99
100
public
static
function
of
():
EditPreviewFailedErrorBuilder
101
{
102
return
new
self
();
103
}
104
}
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder
Definition:
EditPreviewFailedErrorBuilder.php:24
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\getMessage
getMessage()
Definition:
EditPreviewFailedErrorBuilder.php:43
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\withResult
withResult(?OrderEditPreviewFailure $result)
Definition:
EditPreviewFailedErrorBuilder.php:74
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\withMessage
withMessage(?string $message)
Definition:
EditPreviewFailedErrorBuilder.php:63
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\getResult
getResult()
Definition:
EditPreviewFailedErrorBuilder.php:54
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\build
build()
Definition:
EditPreviewFailedErrorBuilder.php:92
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\of
static of()
Definition:
EditPreviewFailedErrorBuilder.php:100
Commercetools\Api\Models\Error\EditPreviewFailedErrorBuilder\withResultBuilder
withResultBuilder(?OrderEditPreviewFailureBuilder $result)
Definition:
EditPreviewFailedErrorBuilder.php:85
Commercetools\Api\Models\Error\EditPreviewFailedErrorModel
Definition:
EditPreviewFailedErrorModel.php:23
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder
Definition:
OrderEditPreviewFailureBuilder.php:23
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder\build
build()
Definition:
OrderEditPreviewFailureBuilder.php:53
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Error\EditPreviewFailedError
Definition:
EditPreviewFailedError.php:16
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailure
Definition:
OrderEditPreviewFailure.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Error
Definition:
AnonymousIdAlreadyInUseError.php:9
Generated by
1.9.1