47 $baseArray = parent::convertToArray($sharingLink);
49 $members = array_map(
static function($member) {
50 return $member->toArray();
51 }, $sharingLink->getMembers());
53 return array_merge($baseArray, [
54 'members' => $members,
55 'membersHash' => $sharingLink->getMembersHash(),
56 'userIds' => array_merge([$sharingLink->getOwnerId()], array_map(
static fn ($member) => $member[
'id'], $members)),
57 'isJoint' => $sharingLink->isJoint(),