refactored code

Signed-off-by: Maurice Preuß (envoyr) <hello@envoyr.com>
This commit is contained in:
envoyr committed 2025-04-30 03:45:10 +02:00
1 parent 85702fcb2c
commit 4b23f6ddbb
42 files changed
+1139 -594

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
<?php
namespace Anikeen\Id\Concerns;
use stdClass;
trait MagicProperties
{
protected function setMagicProperties(stdClass $data): void
{
foreach ($data as $key => $value) {
if (property_exists($this, $key)) {
$this->{$key} = $value;
}
}
}
}