nextcloud/lib/public/Share/Events/ShareMovedEvent.php
Robin Appelman a05a3b9005
fix: only update share for the user who moved the share
Signed-off-by: Robin Appelman <robin@icewind.nl>
2026-04-24 18:17:44 +02:00

42 lines
664 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Share\Events;
use OCP\EventDispatcher\Event;
use OCP\IUser;
use OCP\Share\IShare;
/**
* @since 33.0.0
*/
class ShareMovedEvent extends Event {
/**
* @since 33.0.0
*/
public function __construct(
private readonly IShare $share,
private readonly IUser $user,
) {
parent::__construct();
}
/**
* @since 33.0.0
*/
public function getShare(): IShare {
return $this->share;
}
/**
* @since 33.0.0
*/
public function getUser(): IUser {
return $this->user;
}
}