summaryrefslogtreecommitdiff
path: root/src/Makable.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makable.php')
-rw-r--r--src/Makable.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Makable.php b/src/Makable.php
new file mode 100644
index 0000000..15352dc
--- /dev/null
+++ b/src/Makable.php
@@ -0,0 +1,13 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Zhineng\Snowflake;
+
+trait Makable
+{
+ public static function make(mixed ...$args): static
+ {
+ return new static(...$args);
+ }
+}