This commit is contained in:
2020-09-02 15:38:04 +08:00
parent 0098e1bc6f
commit 0798a8c6f5
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -152,6 +152,9 @@ class Snowflake
public static function configure($object, $config)
{
foreach ($config as $key => $value) {
if (!property_exists($object, $key)) {
continue;
}
$object->$key = $value;
}
return $object;