$propertyOption->
setName((string) $x);
$propertyOption->
setTranslated([ 'name' =>
(string) $x,
'description' => '',
'position' => 1,
'customFields' =>
[],
]);
$propertyOptions[] =
$propertyOption;
} shuffle($propertyOptions);
return new PropertyGroupOptionCollection($propertyOptions);
} private function getPropertyOptionsNumbersFirstThenLetters(): PropertyGroupOptionCollection
{ $propertyOptions =
[];
$letterArray =
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'
];
for ($x = 10;
$x < 500; ++
$x) { $propertyOption =
new PropertyGroupOptionEntity();
$propertyOption->
setId(Uuid::
randomHex());
$propertyOption->
setPosition(1
);
$propertyOption->
setName((string) ((int) ($x / 10
)) .
$letterArray[$x % 10
]);