From 2bf508914aa70b60a726a355569ab571f86f585a Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Mon, 25 Nov 2024 13:43:54 +0100 Subject: [PATCH] Add missing docblock --- lib/Service/SynchronizationService.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/Service/SynchronizationService.php b/lib/Service/SynchronizationService.php index 47e05d3..4fefad8 100644 --- a/lib/Service/SynchronizationService.php +++ b/lib/Service/SynchronizationService.php @@ -175,6 +175,17 @@ private function getOriginId(Synchronization $synchronization, array $object): i return $originId; } + /** + * Fetch an object from a specific endpoint. + * + * @param Synchronization $synchronization The synchronization containing the source. + * @param string $endpoint The endpoint to request to fetch the desired object. + * + * @return array The resulting object. + * + * @throws GuzzleException + * @throws \OCP\DB\Exception + */ public function getObjectFromSource(Synchronization $synchronization, string $endpoint): array { $source = $this->sourceMapper->find(id: $synchronization->getSourceId());