Skip to content

Commit

Permalink
Add missing docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Nov 25, 2024
1 parent e6b5fcb commit 2bf5089
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Service/SynchronizationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 2bf5089

Please sign in to comment.