commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-import
src
Models
OrderPatches
RemoveParcelFromDeliveryDraftModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Import\Models\OrderPatches
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
RemoveParcelFromDeliveryDraftModel
extends
JsonObjectModel
implements
RemoveParcelFromDeliveryDraft
21
{
26
protected
$parcelId
;
27
28
32
public
function
__construct
(
33
?
string
$parcelId
=
null
34
) {
35
$this->parcelId =
$parcelId
;
36
}
37
42
public
function
getParcelId
()
43
{
44
if
(is_null($this->parcelId)) {
46
$data = $this->
raw
(self::FIELD_PARCEL_ID);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
$this->parcelId = (string) $data;
51
}
52
53
return
$this->parcelId
;
54
}
55
56
60
public
function
setParcelId
(?
string
$parcelId
): void
61
{
62
$this->parcelId =
$parcelId
;
63
}
64
}
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition:
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraftModel
Definition:
RemoveParcelFromDeliveryDraftModel.php:21
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraftModel\setParcelId
setParcelId(?string $parcelId)
Definition:
RemoveParcelFromDeliveryDraftModel.php:60
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraftModel\$parcelId
$parcelId
Definition:
RemoveParcelFromDeliveryDraftModel.php:26
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraftModel\getParcelId
getParcelId()
Definition:
RemoveParcelFromDeliveryDraftModel.php:42
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraftModel\__construct
__construct(?string $parcelId=null)
Definition:
RemoveParcelFromDeliveryDraftModel.php:32
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Import\Models\OrderPatches\RemoveParcelFromDeliveryDraft
Definition:
RemoveParcelFromDeliveryDraft.php:15
Commercetools\Import\Models\OrderPatches
Definition:
DeliveryAddressDraft.php:9
Generated by
1.9.1