commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
Importrequests
DiscountCodeImportRequestBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\Importrequests
;
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
Commercetools\Import\Models\DiscountCodes\DiscountCodeImportCollection
;
17
use stdClass;
18
22
final
class
DiscountCodeImportRequestBuilder
implements
Builder
23
{
28
private
$resources;
29
36
public
function
getResources
()
37
{
38
return
$this->resources;
39
}
40
45
public
function
withResources
(?
DiscountCodeImportCollection
$resources)
46
{
47
$this->resources = $resources;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
DiscountCodeImportRequest
54
{
55
return
new
DiscountCodeImportRequestModel
(
56
$this->resources
57
);
58
}
59
60
public
static
function
of
():
DiscountCodeImportRequestBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\DiscountCodes\DiscountCodeImportCollection
Definition:
DiscountCodeImportCollection.php:22
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestBuilder
Definition:
DiscountCodeImportRequestBuilder.php:23
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestBuilder\withResources
withResources(?DiscountCodeImportCollection $resources)
Definition:
DiscountCodeImportRequestBuilder.php:45
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestBuilder\of
static of()
Definition:
DiscountCodeImportRequestBuilder.php:60
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestBuilder\build
build()
Definition:
DiscountCodeImportRequestBuilder.php:53
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestBuilder\getResources
getResources()
Definition:
DiscountCodeImportRequestBuilder.php:36
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequestModel
Definition:
DiscountCodeImportRequestModel.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\Importrequests\DiscountCodeImportRequest
Definition:
DiscountCodeImportRequest.php:16
Commercetools\Import\Models\Importrequests
Definition:
CategoryImportRequest.php:9
Generated by
1.9.1