feat(catalog): add tenant-scoped product attributes and variant definitions
This commit is contained in:
16
app/Domains/Catalog/Support/ProductAttributeType.php
Normal file
16
app/Domains/Catalog/Support/ProductAttributeType.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Catalog\Support;
|
||||
|
||||
enum ProductAttributeType: string
|
||||
{
|
||||
case Text = 'text';
|
||||
case Numeric = 'numeric';
|
||||
case Select = 'select';
|
||||
case Multiselect = 'multiselect';
|
||||
|
||||
public function supportsOptions(): bool
|
||||
{
|
||||
return in_array($this, [self::Select, self::Multiselect], true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user