commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Quote
QuoteReferenceBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Quote
;
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
QuoteReferenceBuilder
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
QuoteBuilder
? $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
(?
Quote
$obj)
76
{
77
$this->obj = $obj;
78
79
return
$this;
80
}
81
86
public
function
withObjBuilder
(?
QuoteBuilder
$obj)
87
{
88
$this->obj = $obj;
89
90
return
$this;
91
}
92
93
public
function
build
():
QuoteReference
94
{
95
return
new
QuoteReferenceModel
(
96
$this->
id
,
97
$this->obj instanceof
QuoteBuilder
? $this->obj->
build
() : $this->obj
98
);
99
}
100
101
public
static
function
of
():
QuoteReferenceBuilder
102
{
103
return
new
self
();
104
}
105
}
Commercetools\Api\Models\Common\ReferenceBuilder
Definition:
ReferenceBuilder.php:92
Commercetools\Api\Models\Quote\QuoteBuilder
Definition:
QuoteBuilder.php:61
Commercetools\Api\Models\Quote\QuoteBuilder\build
build()
Definition:
QuoteBuilder.php:1268
Commercetools\Api\Models\Quote\QuoteReferenceBuilder
Definition:
QuoteReferenceBuilder.php:24
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\withObjBuilder
withObjBuilder(?QuoteBuilder $obj)
Definition:
QuoteReferenceBuilder.php:86
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\build
build()
Definition:
QuoteReferenceBuilder.php:93
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\withObj
withObj(?Quote $obj)
Definition:
QuoteReferenceBuilder.php:75
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\getObj
getObj()
Definition:
QuoteReferenceBuilder.php:55
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\withId
withId(?string $id)
Definition:
QuoteReferenceBuilder.php:64
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\getId
getId()
Definition:
QuoteReferenceBuilder.php:43
Commercetools\Api\Models\Quote\QuoteReferenceBuilder\of
static of()
Definition:
QuoteReferenceBuilder.php:101
Commercetools\Api\Models\Quote\QuoteReferenceModel
Definition:
QuoteReferenceModel.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\Quote\Quote
Definition:
Quote.php:37
Commercetools\Api\Models\Quote\QuoteReference
Definition:
QuoteReference.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Quote
Definition:
Quote.php:9
Generated by
1.9.1