commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Category
Category.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Category
;
10
11
use
Commercetools\Api\Models\Common\AssetCollection
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\LastModifiedBy
;
15
use
Commercetools\Api\Models\Common\LocalizedString
;
16
use
Commercetools\Api\Models\Type\CustomFields
;
17
use
Commercetools\Base\DateTimeImmutableCollection
;
18
use
Commercetools\Base\JsonObject
;
19
use DateTimeImmutable;
20
21
interface
Category
extends
BaseResource
22
{
23
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
24
public
const
FIELD_CREATED_BY
=
'createdBy'
;
25
public
const
FIELD_NAME
=
'name'
;
26
public
const
FIELD_SLUG
=
'slug'
;
27
public
const
FIELD_DESCRIPTION
=
'description'
;
28
public
const
FIELD_ANCESTORS
=
'ancestors'
;
29
public
const
FIELD_PARENT
=
'parent'
;
30
public
const
FIELD_ORDER_HINT
=
'orderHint'
;
31
public
const
FIELD_EXTERNAL_ID
=
'externalId'
;
32
public
const
FIELD_META_TITLE
=
'metaTitle'
;
33
public
const
FIELD_META_DESCRIPTION
=
'metaDescription'
;
34
public
const
FIELD_META_KEYWORDS
=
'metaKeywords'
;
35
public
const
FIELD_CUSTOM
=
'custom'
;
36
public
const
FIELD_ASSETS
=
'assets'
;
37
public
const
FIELD_KEY
=
'key'
;
38
45
public
function
getId
();
46
53
public
function
getVersion
();
54
61
public
function
getCreatedAt
();
62
69
public
function
getLastModifiedAt
();
70
77
public
function
getLastModifiedBy
();
78
85
public
function
getCreatedBy
();
86
93
public
function
getName
();
94
104
public
function
getSlug
();
105
112
public
function
getDescription
();
113
120
public
function
getAncestors
();
121
128
public
function
getParent
();
129
136
public
function
getOrderHint
();
137
144
public
function
getExternalId
();
145
152
public
function
getMetaTitle
();
153
160
public
function
getMetaDescription
();
161
168
public
function
getMetaKeywords
();
169
176
public
function
getCustom
();
177
184
public
function
getAssets
();
185
192
public
function
getKey
();
193
197
public
function
setId
(?
string
$id): void;
198
202
public
function
setVersion
(?
int
$version): void;
203
207
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
208
212
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
213
217
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
218
222
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
223
227
public
function
setName
(?
LocalizedString
$name): void;
228
232
public
function
setSlug
(?
LocalizedString
$slug): void;
233
237
public
function
setDescription
(?
LocalizedString
$description): void;
238
242
public
function
setAncestors
(?
CategoryReferenceCollection
$ancestors): void;
243
247
public
function
setParent
(?
CategoryReference
$parent): void;
248
252
public
function
setOrderHint
(?
string
$orderHint): void;
253
257
public
function
setExternalId
(?
string
$externalId): void;
258
262
public
function
setMetaTitle
(?
LocalizedString
$metaTitle): void;
263
267
public
function
setMetaDescription
(?
LocalizedString
$metaDescription): void;
268
272
public
function
setMetaKeywords
(?
LocalizedString
$metaKeywords): void;
273
277
public
function
setCustom
(?
CustomFields
$custom): void;
278
282
public
function
setAssets
(?
AssetCollection
$assets): void;
283
287
public
function
setKey
(?
string
$key): void;
288
}
Commercetools\Api\Models\Category\CategoryReferenceCollection
Definition:
CategoryReferenceCollection.php:22
Commercetools\Api\Models\Common\AssetCollection
Definition:
AssetCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Category\Category
Definition:
Category.php:22
Commercetools\Api\Models\Category\Category\getCustom
getCustom()
Commercetools\Api\Models\Category\Category\setDescription
setDescription(?LocalizedString $description)
Commercetools\Api\Models\Category\Category\setAncestors
setAncestors(?CategoryReferenceCollection $ancestors)
Commercetools\Api\Models\Category\Category\getDescription
getDescription()
Commercetools\Api\Models\Category\Category\getId
getId()
Commercetools\Api\Models\Category\Category\getAssets
getAssets()
Commercetools\Api\Models\Category\Category\getKey
getKey()
Commercetools\Api\Models\Category\Category\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\Category\Category\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Category\Category\FIELD_NAME
const FIELD_NAME
Definition:
Category.php:25
Commercetools\Api\Models\Category\Category\getVersion
getVersion()
Commercetools\Api\Models\Category\Category\FIELD_KEY
const FIELD_KEY
Definition:
Category.php:37
Commercetools\Api\Models\Category\Category\setExternalId
setExternalId(?string $externalId)
Commercetools\Api\Models\Category\Category\FIELD_EXTERNAL_ID
const FIELD_EXTERNAL_ID
Definition:
Category.php:31
Commercetools\Api\Models\Category\Category\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Category.php:23
Commercetools\Api\Models\Category\Category\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Category\Category\getName
getName()
Commercetools\Api\Models\Category\Category\FIELD_ASSETS
const FIELD_ASSETS
Definition:
Category.php:36
Commercetools\Api\Models\Category\Category\getAncestors
getAncestors()
Commercetools\Api\Models\Category\Category\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Category\Category\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Category\Category\FIELD_SLUG
const FIELD_SLUG
Definition:
Category.php:26
Commercetools\Api\Models\Category\Category\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
Category.php:27
Commercetools\Api\Models\Category\Category\getParent
getParent()
Commercetools\Api\Models\Category\Category\getMetaTitle
getMetaTitle()
Commercetools\Api\Models\Category\Category\getOrderHint
getOrderHint()
Commercetools\Api\Models\Category\Category\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Category\Category\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Category\Category\setParent
setParent(?CategoryReference $parent)
Commercetools\Api\Models\Category\Category\FIELD_META_DESCRIPTION
const FIELD_META_DESCRIPTION
Definition:
Category.php:33
Commercetools\Api\Models\Category\Category\FIELD_META_KEYWORDS
const FIELD_META_KEYWORDS
Definition:
Category.php:34
Commercetools\Api\Models\Category\Category\FIELD_ANCESTORS
const FIELD_ANCESTORS
Definition:
Category.php:28
Commercetools\Api\Models\Category\Category\FIELD_ORDER_HINT
const FIELD_ORDER_HINT
Definition:
Category.php:30
Commercetools\Api\Models\Category\Category\setKey
setKey(?string $key)
Commercetools\Api\Models\Category\Category\setOrderHint
setOrderHint(?string $orderHint)
Commercetools\Api\Models\Category\Category\getSlug
getSlug()
Commercetools\Api\Models\Category\Category\getMetaDescription
getMetaDescription()
Commercetools\Api\Models\Category\Category\setAssets
setAssets(?AssetCollection $assets)
Commercetools\Api\Models\Category\Category\FIELD_PARENT
const FIELD_PARENT
Definition:
Category.php:29
Commercetools\Api\Models\Category\Category\getMetaKeywords
getMetaKeywords()
Commercetools\Api\Models\Category\Category\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Category\Category\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
Category.php:35
Commercetools\Api\Models\Category\Category\setSlug
setSlug(?LocalizedString $slug)
Commercetools\Api\Models\Category\Category\setMetaDescription
setMetaDescription(?LocalizedString $metaDescription)
Commercetools\Api\Models\Category\Category\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Category\Category\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Category\Category\setMetaTitle
setMetaTitle(?LocalizedString $metaTitle)
Commercetools\Api\Models\Category\Category\getExternalId
getExternalId()
Commercetools\Api\Models\Category\Category\setMetaKeywords
setMetaKeywords(?LocalizedString $metaKeywords)
Commercetools\Api\Models\Category\Category\setId
setId(?string $id)
Commercetools\Api\Models\Category\Category\FIELD_META_TITLE
const FIELD_META_TITLE
Definition:
Category.php:32
Commercetools\Api\Models\Category\Category\setName
setName(?LocalizedString $name)
Commercetools\Api\Models\Category\Category\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Category.php:24
Commercetools\Api\Models\Category\CategoryReference
Definition:
CategoryReference.php:16
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Category
Definition:
Category.php:9
Generated by
1.9.1