commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importsummaries
ImportSummaryBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importsummaries
;
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
ImportSummaryBuilder
implements
Builder
22
{
27
private
$states;
28
33
private
$total;
34
41
public
function
getStates
()
42
{
43
return
$this->states instanceof
OperationStatesBuilder
? $this->states->
build
() : $this->states;
44
}
45
52
public
function
getTotal
()
53
{
54
return
$this->total;
55
}
56
61
public
function
withStates
(?
OperationStates
$states)
62
{
63
$this->states = $states;
64
65
return
$this;
66
}
67
72
public
function
withTotal
(?
int
$total)
73
{
74
$this->total = $total;
75
76
return
$this;
77
}
78
83
public
function
withStatesBuilder
(?
OperationStatesBuilder
$states)
84
{
85
$this->states = $states;
86
87
return
$this;
88
}
89
90
public
function
build
():
ImportSummary
91
{
92
return
new
ImportSummaryModel
(
93
$this->states instanceof
OperationStatesBuilder
? $this->states->
build
() : $this->states,
94
$this->total
95
);
96
}
97
98
public
static
function
of
():
ImportSummaryBuilder
99
{
100
return
new
self
();
101
}
102
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder
Definition:
ImportSummaryBuilder.php:22
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\getStates
getStates()
Definition:
ImportSummaryBuilder.php:41
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\build
build()
Definition:
ImportSummaryBuilder.php:90
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\withStates
withStates(?OperationStates $states)
Definition:
ImportSummaryBuilder.php:61
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\withTotal
withTotal(?int $total)
Definition:
ImportSummaryBuilder.php:72
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\of
static of()
Definition:
ImportSummaryBuilder.php:98
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\withStatesBuilder
withStatesBuilder(?OperationStatesBuilder $states)
Definition:
ImportSummaryBuilder.php:83
Commercetools\Import\Models\Importsummaries\ImportSummaryBuilder\getTotal
getTotal()
Definition:
ImportSummaryBuilder.php:52
Commercetools\Import\Models\Importsummaries\ImportSummaryModel
Definition:
ImportSummaryModel.php:21
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder
Definition:
OperationStatesBuilder.php:22
Commercetools\Import\Models\Importsummaries\OperationStatesBuilder\build
build()
Definition:
OperationStatesBuilder.php:220
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importsummaries\ImportSummary
Definition:
ImportSummary.php:15
Commercetools\Import\Models\Importsummaries\OperationStates
Definition:
OperationStates.php:15
Commercetools\Import\Models\Importsummaries
Definition:
ImportSummary.php:9
Generated by
1.9.1