return new PropertyGroupCollection([$propertyGroup]);
} private function getPropertyGroupAlphaNumericNumbersFirstThenLetters(): PropertyGroupCollection
{ $propertyGroup =
new PropertyGroupEntity();
$propertyGroup->
setId(Uuid::
randomHex());
$propertyGroup->
setName('Alphanumeric numbers first then letters'
);
$propertyGroup->
setSortingType(PropertyGroupDefinition::SORTING_TYPE_ALPHANUMERIC
);
$propertyGroup->
setDisplayType(PropertyGroupDefinition::DISPLAY_TYPE_TEXT
);
$propertyGroup->
setPosition(1
);
$propertyGroup->
setOptions($this->
getPropertyOptionsNumbersFirstThenLetters());
return new PropertyGroupCollection([$propertyGroup]);
} private function getPropertyGroupAlphaNumericOnlyLetters(): PropertyGroupCollection
{ $propertyGroup =
new PropertyGroupEntity();
$propertyGroup->
setId(Uuid::
randomHex());
$propertyGroup->
setName('Alphanumeric only letters'
);
$propertyGroup->
setSortingType(PropertyGroupDefinition::SORTING_TYPE_ALPHANUMERIC
);
$propertyGroup->
setDisplayType(PropertyGroupDefinition::DISPLAY_TYPE_TEXT
);