https://www.php-resource.de/forum/php-developer-forum/104196-form-a-unique-numerical-value-from-enumeration