commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ShoppingList
TextLineItemDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ShoppingList
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use DateTimeImmutable;
16
17
interface
TextLineItemDraft
extends
JsonObject
18
{
19
public
const
FIELD_KEY
=
'key'
;
20
public
const
FIELD_ADDED_AT
=
'addedAt'
;
21
public
const
FIELD_CUSTOM
=
'custom'
;
22
public
const
FIELD_DESCRIPTION
=
'description'
;
23
public
const
FIELD_NAME
=
'name'
;
24
public
const
FIELD_QUANTITY
=
'quantity'
;
25
32
public
function
getKey
();
33
40
public
function
getAddedAt
();
41
48
public
function
getCustom
();
49
56
public
function
getDescription
();
57
64
public
function
getName
();
65
72
public
function
getQuantity
();
73
77
public
function
setKey
(?
string
$key): void;
78
82
public
function
setAddedAt
(?DateTimeImmutable $addedAt): void;
83
87
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
88
92
public
function
setDescription
(?
LocalizedString
$description): void;
93
97
public
function
setName
(?
LocalizedString
$name): void;
98
102
public
function
setQuantity
(?
int
$quantity): void;
103
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\ShoppingList\TextLineItemDraft
Definition:
TextLineItemDraft.php:18
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_NAME
const FIELD_NAME
Definition:
TextLineItemDraft.php:23
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getAddedAt
getAddedAt()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getCustom
getCustom()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_KEY
const FIELD_KEY
Definition:
TextLineItemDraft.php:19
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getKey
getKey()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getName
getName()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
TextLineItemDraft.php:21
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setAddedAt
setAddedAt(?DateTimeImmutable $addedAt)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getDescription
getDescription()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
TextLineItemDraft.php:22
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
TextLineItemDraft.php:24
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\getQuantity
getQuantity()
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\ShoppingList\TextLineItemDraft\FIELD_ADDED_AT
const FIELD_ADDED_AT
Definition:
TextLineItemDraft.php:20
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ShoppingList
Definition:
ShoppingList.php:9
Generated by
1.9.1