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
CartDiscount
CountOnLineItemUnitsBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
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
CountOnLineItemUnitsBuilder
implements
Builder
22
{
27
private
$predicate;
28
33
private
$minCount;
34
39
private
$maxCount;
40
45
private
$excludeCount;
46
53
public
function
getPredicate
()
54
{
55
return
$this->predicate;
56
}
57
64
public
function
getMinCount
()
65
{
66
return
$this->minCount;
67
}
68
78
public
function
getMaxCount
()
79
{
80
return
$this->maxCount;
81
}
82
93
public
function
getExcludeCount
()
94
{
95
return
$this->excludeCount;
96
}
97
102
public
function
withPredicate
(?
string
$predicate)
103
{
104
$this->predicate = $predicate;
105
106
return
$this;
107
}
108
113
public
function
withMinCount
(?
int
$minCount)
114
{
115
$this->minCount = $minCount;
116
117
return
$this;
118
}
119
124
public
function
withMaxCount
(?
int
$maxCount)
125
{
126
$this->maxCount = $maxCount;
127
128
return
$this;
129
}
130
135
public
function
withExcludeCount
(?
int
$excludeCount)
136
{
137
$this->excludeCount = $excludeCount;
138
139
return
$this;
140
}
141
142
143
public
function
build
():
CountOnLineItemUnits
144
{
145
return
new
CountOnLineItemUnitsModel
(
146
$this->predicate,
147
$this->minCount,
148
$this->maxCount,
149
$this->excludeCount
150
);
151
}
152
153
public
static
function
of
():
CountOnLineItemUnitsBuilder
154
{
155
return
new
self
();
156
}
157
}
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder
Definition
CountOnLineItemUnitsBuilder.php:22
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\withExcludeCount
withExcludeCount(?int $excludeCount)
Definition
CountOnLineItemUnitsBuilder.php:135
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\of
static of()
Definition
CountOnLineItemUnitsBuilder.php:153
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\getMaxCount
getMaxCount()
Definition
CountOnLineItemUnitsBuilder.php:78
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\withMaxCount
withMaxCount(?int $maxCount)
Definition
CountOnLineItemUnitsBuilder.php:124
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\getMinCount
getMinCount()
Definition
CountOnLineItemUnitsBuilder.php:64
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\withPredicate
withPredicate(?string $predicate)
Definition
CountOnLineItemUnitsBuilder.php:102
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\getExcludeCount
getExcludeCount()
Definition
CountOnLineItemUnitsBuilder.php:93
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\getPredicate
getPredicate()
Definition
CountOnLineItemUnitsBuilder.php:53
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\withMinCount
withMinCount(?int $minCount)
Definition
CountOnLineItemUnitsBuilder.php:113
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsBuilder\build
build()
Definition
CountOnLineItemUnitsBuilder.php:143
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnitsModel
Definition
CountOnLineItemUnitsModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\CartDiscount\CountOnLineItemUnits
Definition
CountOnLineItemUnits.php:15
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition
CartDiscount.php:9
Generated by
1.9.8