diff --git a/System/Core/Number.php b/System/Core/Number.php index 1463fb26..7e1c69b1 100644 --- a/System/Core/Number.php +++ b/System/Core/Number.php @@ -8,15 +8,24 @@ class Number { - /** - * @param int $userId - * @return string - */ - public static function order(int $userId): string - { - $explode = current(explode(' ', str_replace('0.', '', microtime()))); + /** + * @param int $userId + * @return string + */ + public static function order(int $userId): string + { + $explode = current(explode(' ', str_replace('0.', '', microtime()))); - return 'No.' . sprintf('%09d', $userId) . '.' . date('Ymd.His') . '.' . $explode; - } + return 'No.' . sprintf('%09d', $userId) . '.' . date('Ymd.His') . '.' . $explode; + } + + /** + * @param int $userId + * @return string + */ + public static function create(int $userId): string + { + return static::order($userId); + } }