public function getInputType()
{
$inputType = 'string';
$selectAttributes = ['attribute_set_id', 'stock.is_in_stock', 'has_image', 'price.is_discount'];
if (in_array($this->getAttribute(), $selectAttributes)) {
$inputType = 'select';
} elseif ($this->getAttribute() === 'price') {
$inputType = 'numeric';
} elseif (is_object($this->getAttributeObject())) {
$frontendInput = $this->getAttributeObject()->getFrontendInput();
if ($this->getAttributeObject()->getAttributeCode() === 'category_ids') {
$inputType = 'category';
} elseif (in_array($frontendInput, ['select', 'multiselect'])) {
$inputType = 'multiselect';
} elseif ($frontendInput === 'date') {
$inputType = 'date';
} elseif ($frontendInput === 'boolean') {
$inputType = 'boolean';
}
}
return $inputType;
}