commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Cart
EstimatedDeliveryBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Cart
;
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 DateTimeImmutable;
17
use stdClass;
18
22
final
class
EstimatedDeliveryBuilder
implements
Builder
23
{
28
private
$from;
29
34
private
$until;
35
42
public
function
getFrom
()
43
{
44
return
$this->from;
45
}
46
54
public
function
getUntil
()
55
{
56
return
$this->until;
57
}
58
63
public
function
withFrom
(?DateTimeImmutable $from)
64
{
65
$this->from = $from;
66
67
return
$this;
68
}
69
74
public
function
withUntil
(?DateTimeImmutable $until)
75
{
76
$this->until = $until;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
EstimatedDelivery
83
{
84
return
new
EstimatedDeliveryModel
(
85
$this->from,
86
$this->until
87
);
88
}
89
90
public
static
function
of
():
EstimatedDeliveryBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder
Definition
EstimatedDeliveryBuilder.php:23
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\withUntil
withUntil(?DateTimeImmutable $until)
Definition
EstimatedDeliveryBuilder.php:74
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\of
static of()
Definition
EstimatedDeliveryBuilder.php:90
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\build
build()
Definition
EstimatedDeliveryBuilder.php:82
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\getUntil
getUntil()
Definition
EstimatedDeliveryBuilder.php:54
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\withFrom
withFrom(?DateTimeImmutable $from)
Definition
EstimatedDeliveryBuilder.php:63
Commercetools\Api\Models\Cart\EstimatedDeliveryBuilder\getFrom
getFrom()
Definition
EstimatedDeliveryBuilder.php:42
Commercetools\Api\Models\Cart\EstimatedDeliveryModel
Definition
EstimatedDeliveryModel.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\Cart\EstimatedDelivery
Definition
EstimatedDelivery.php:16
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Cart
Definition
AbsoluteAllocation.php:9
Generated by
1.9.8