From fa00b957378a393f8edbfc98ef111d35d18ecb09 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 24 Sep 2023 13:40:25 +0200 Subject: initial commit --- src/Model.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Model.php (limited to 'src/Model.php') diff --git a/src/Model.php b/src/Model.php new file mode 100644 index 0000000..5f45ed4 --- /dev/null +++ b/src/Model.php @@ -0,0 +1,19 @@ + $_) { + if (! empty($original->$property) && empty($object->$property)) { + $object->$property = $original->$property; + } + } + + return $object; + } +} -- cgit v1.2.3