commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
QuoteRequest
QuoteRequestReferenceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\QuoteRequest
;
10
11
use
Commercetools\Api\Models\Common\Reference
;
12
use
Commercetools\Api\Models\Common\ReferenceBuilder
;
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
QuoteRequestReferenceBuilder
implements
Builder
24
{
29
private
$id;
30
35
private
$obj;
36
43
public
function
getId
()
44
{
45
return
$this->id;
46
}
47
55
public
function
getObj
()
56
{
57
return
$this->obj instanceof
QuoteRequestBuilder
? $this->obj->
build
() : $this->obj;
58
}
59
64
public
function
withId
(?
string
$id)
65
{
66
$this->
id
= $id;
67
68
return
$this;
69
}
70
75
public
function
withObj
(?
QuoteRequest
$obj)
76
{
77
$this->obj = $obj;
78
79
return
$this;
80
}
81
86
public
function
withObjBuilder
(?
QuoteRequestBuilder
$obj)
87
{
88
$this->obj = $obj;
89
90
return
$this;
91
}
92
93
public
function
build
():
QuoteRequestReference
94
{
95
return
new
QuoteRequestReferenceModel
(
96
$this->
id
,
97
$this->obj instanceof
QuoteRequestBuilder
? $this->obj->
build
() : $this->obj
98
);
99
}
100
101
public
static
function
of
():
QuoteRequestReferenceBuilder
102
{
103
return
new
self
();
104
}
105
}
Commercetools\Api\Models\Common\ReferenceBuilder
Definition:
ReferenceBuilder.php:92
Commercetools\Api\Models\QuoteRequest\QuoteRequestBuilder
Definition:
QuoteRequestBuilder.php:59
Commercetools\Api\Models\QuoteRequest\QuoteRequestBuilder\build
build()
Definition:
QuoteRequestBuilder.php:1171
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder
Definition:
QuoteRequestReferenceBuilder.php:24
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\withObj
withObj(?QuoteRequest $obj)
Definition:
QuoteRequestReferenceBuilder.php:75
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\withObjBuilder
withObjBuilder(?QuoteRequestBuilder $obj)
Definition:
QuoteRequestReferenceBuilder.php:86
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\withId
withId(?string $id)
Definition:
QuoteRequestReferenceBuilder.php:64
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\build
build()
Definition:
QuoteRequestReferenceBuilder.php:93
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\of
static of()
Definition:
QuoteRequestReferenceBuilder.php:101
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\getId
getId()
Definition:
QuoteRequestReferenceBuilder.php:43
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceBuilder\getObj
getObj()
Definition:
QuoteRequestReferenceBuilder.php:55
Commercetools\Api\Models\QuoteRequest\QuoteRequestReferenceModel
Definition:
QuoteRequestReferenceModel.php:23
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Common\Reference
Definition:
Reference.php:50
Commercetools\Api\Models\QuoteRequest\QuoteRequest
Definition:
QuoteRequest.php:36
Commercetools\Api\Models\QuoteRequest\QuoteRequestReference
Definition:
QuoteRequestReference.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\QuoteRequest
Definition:
QuoteRequest.php:9
Generated by
1.9.1