commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
OrderEdit
OrderEditPreviewFailureBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\OrderEdit
;
10
11
use
Commercetools\Api\Models\Error\ErrorObjectCollection
;
12
use
Commercetools\Base\Builder
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use
Commercetools\Base\JsonObjectModel
;
16
use
Commercetools\Base\MapperFactory
;
17
use stdClass;
18
22
final
class
OrderEditPreviewFailureBuilder
implements
Builder
23
{
28
private
$errors;
29
36
public
function
getErrors
()
37
{
38
return
$this->errors;
39
}
40
45
public
function
withErrors
(?
ErrorObjectCollection
$errors)
46
{
47
$this->errors = $errors;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
OrderEditPreviewFailure
54
{
55
return
new
OrderEditPreviewFailureModel
(
56
$this->errors
57
);
58
}
59
60
public
static
function
of
():
OrderEditPreviewFailureBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Api\Models\Error\ErrorObjectCollection
Definition:
ErrorObjectCollection.php:26
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder
Definition:
OrderEditPreviewFailureBuilder.php:23
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder\of
static of()
Definition:
OrderEditPreviewFailureBuilder.php:60
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder\build
build()
Definition:
OrderEditPreviewFailureBuilder.php:53
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder\getErrors
getErrors()
Definition:
OrderEditPreviewFailureBuilder.php:36
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureBuilder\withErrors
withErrors(?ErrorObjectCollection $errors)
Definition:
OrderEditPreviewFailureBuilder.php:45
Commercetools\Api\Models\OrderEdit\OrderEditPreviewFailureModel
Definition:
OrderEditPreviewFailureModel.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.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\OrderEdit
Definition:
OrderEdit.php:9
Generated by
1.9.1