commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Errors
ReferencedResourceNotFoundBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Errors
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
ReferencedResourceNotFoundBuilder
implements
Builder
22
{
27
private
$message;
28
33
private
$typeId;
34
39
private
$id;
40
45
private
$key;
46
53
public
function
getMessage
()
54
{
55
return
$this->message;
56
}
57
64
public
function
getTypeId
()
65
{
66
return
$this->typeId;
67
}
68
75
public
function
getId
()
76
{
77
return
$this->id;
78
}
79
86
public
function
getKey
()
87
{
88
return
$this->key;
89
}
90
95
public
function
withMessage
(?
string
$message)
96
{
97
$this->message = $message;
98
99
return
$this;
100
}
101
106
public
function
withTypeId
(?
string
$typeId)
107
{
108
$this->typeId = $typeId;
109
110
return
$this;
111
}
112
117
public
function
withId
(?
string
$id)
118
{
119
$this->
id
= $id;
120
121
return
$this;
122
}
123
128
public
function
withKey
(?
string
$key)
129
{
130
$this->key = $key;
131
132
return
$this;
133
}
134
135
136
public
function
build
():
ReferencedResourceNotFound
137
{
138
return
new
ReferencedResourceNotFoundModel
(
139
$this->message,
140
$this->typeId,
141
$this->
id
,
142
$this->key
143
);
144
}
145
146
public
static
function
of
():
ReferencedResourceNotFoundBuilder
147
{
148
return
new
self
();
149
}
150
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder
Definition:
ReferencedResourceNotFoundBuilder.php:22
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\getId
getId()
Definition:
ReferencedResourceNotFoundBuilder.php:75
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\withMessage
withMessage(?string $message)
Definition:
ReferencedResourceNotFoundBuilder.php:95
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\withId
withId(?string $id)
Definition:
ReferencedResourceNotFoundBuilder.php:117
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\getKey
getKey()
Definition:
ReferencedResourceNotFoundBuilder.php:86
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\of
static of()
Definition:
ReferencedResourceNotFoundBuilder.php:146
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\getTypeId
getTypeId()
Definition:
ReferencedResourceNotFoundBuilder.php:64
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\getMessage
getMessage()
Definition:
ReferencedResourceNotFoundBuilder.php:53
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\withKey
withKey(?string $key)
Definition:
ReferencedResourceNotFoundBuilder.php:128
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\withTypeId
withTypeId(?string $typeId)
Definition:
ReferencedResourceNotFoundBuilder.php:106
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundBuilder\build
build()
Definition:
ReferencedResourceNotFoundBuilder.php:136
Commercetools\Import\Models\Errors\ReferencedResourceNotFoundModel
Definition:
ReferencedResourceNotFoundModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Errors\ReferencedResourceNotFound
Definition:
ReferencedResourceNotFound.php:15
Commercetools\Import\Models\Errors
Definition:
AccessDeniedError.php:9
Generated by
1.9.1