Skip to content

Commit

Permalink
Add docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Jan 13, 2025
1 parent 6c73eaa commit 9660a0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9660a0f

Please sign in to comment.