commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ProductType
AttributeDefinitionDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ProductType
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
15
interface
AttributeDefinitionDraft
extends
JsonObject
16
{
17
public
const
FIELD_TYPE
=
'type'
;
18
public
const
FIELD_NAME
=
'name'
;
19
public
const
FIELD_LABEL
=
'label'
;
20
public
const
FIELD_IS_REQUIRED
=
'isRequired'
;
21
public
const
FIELD_ATTRIBUTE_CONSTRAINT
=
'attributeConstraint'
;
22
public
const
FIELD_INPUT_TIP
=
'inputTip'
;
23
public
const
FIELD_INPUT_HINT
=
'inputHint'
;
24
public
const
FIELD_IS_SEARCHABLE
=
'isSearchable'
;
25
33
public
function
getType
();
34
43
public
function
getName
();
44
51
public
function
getLabel
();
52
59
public
function
getIsRequired
();
60
67
public
function
getAttributeConstraint
();
68
75
public
function
getInputTip
();
76
83
public
function
getInputHint
();
84
95
public
function
getIsSearchable
();
96
100
public
function
setType
(?
AttributeType
$type): void;
101
105
public
function
setName
(?
string
$name): void;
106
110
public
function
setLabel
(?
LocalizedString
$label): void;
111
115
public
function
setIsRequired
(?
bool
$isRequired): void;
116
120
public
function
setAttributeConstraint
(?
string
$attributeConstraint): void;
121
125
public
function
setInputTip
(?
LocalizedString
$inputTip): void;
126
130
public
function
setInputHint
(?
string
$inputHint): void;
131
135
public
function
setIsSearchable
(?
bool
$isSearchable): void;
136
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\LocalizedString
Definition:
LocalizedString.php:14
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft
Definition:
AttributeDefinitionDraft.php:16
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getIsSearchable
getIsSearchable()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getAttributeConstraint
getAttributeConstraint()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setName
setName(?string $name)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setType
setType(?AttributeType $type)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_IS_REQUIRED
const FIELD_IS_REQUIRED
Definition:
AttributeDefinitionDraft.php:20
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setIsRequired
setIsRequired(?bool $isRequired)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_ATTRIBUTE_CONSTRAINT
const FIELD_ATTRIBUTE_CONSTRAINT
Definition:
AttributeDefinitionDraft.php:21
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getLabel
getLabel()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setAttributeConstraint
setAttributeConstraint(?string $attributeConstraint)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getName
getName()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setIsSearchable
setIsSearchable(?bool $isSearchable)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getIsRequired
getIsRequired()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_INPUT_TIP
const FIELD_INPUT_TIP
Definition:
AttributeDefinitionDraft.php:22
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_INPUT_HINT
const FIELD_INPUT_HINT
Definition:
AttributeDefinitionDraft.php:23
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setInputTip
setInputTip(?LocalizedString $inputTip)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setInputHint
setInputHint(?string $inputHint)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_LABEL
const FIELD_LABEL
Definition:
AttributeDefinitionDraft.php:19
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_IS_SEARCHABLE
const FIELD_IS_SEARCHABLE
Definition:
AttributeDefinitionDraft.php:24
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\setLabel
setLabel(?LocalizedString $label)
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_NAME
const FIELD_NAME
Definition:
AttributeDefinitionDraft.php:18
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getInputTip
getInputTip()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getInputHint
getInputHint()
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\FIELD_TYPE
const FIELD_TYPE
Definition:
AttributeDefinitionDraft.php:17
Commercetools\Api\Models\ProductType\AttributeDefinitionDraft\getType
getType()
Commercetools\Api\Models\ProductType\AttributeType
Definition:
AttributeType.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ProductType
Definition:
AttributeBooleanType.php:9
Generated by
1.9.1