From 9660a0feb0518741f13d1a3a146faa856b6c07ee Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Mon, 13 Jan 2025 13:45:42 +0100 Subject: [PATCH] Add docblock --- lib/Service/ObjectService.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Service/ObjectService.php b/lib/Service/ObjectService.php index 998b3d5..33c44db 100755 --- a/lib/Service/ObjectService.php +++ b/lib/Service/ObjectService.php @@ -1775,6 +1775,15 @@ public function getUses(string $id, ?int $register = null, ?int $schema = null): return $referencedObjects; } + /** + * Sets default values for an object based upon its schema + * + * @param ObjectEntity $objectEntity The object to set default values in. + * + * @return ObjectEntity The resulting objectEntity. + * @throws \Twig\Error\LoaderError + * @throws \Twig\Error\SyntaxError + */ public function setDefaults(ObjectEntity $objectEntity): ObjectEntity { $data = $objectEntity->jsonSerialize();