commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
AttributeDefinitionDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
14 
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 }