/**
* @return mixed
*/
private function randomCustomFieldValue(string
$type, Generator
$faker) { return match ($type) { CustomFieldTypes::BOOL =>
(bool) random_int(0, 1
),
CustomFieldTypes::FLOAT =>
$faker->
randomFloat(),
CustomFieldTypes::INT =>
random_int(-1000000, 1000000
),
CustomFieldTypes::DATETIME =>
$faker->
dateTime(),
default =>
$faker->
text(),
};
}}