nextcloud/lib/private/Files/Notify/RenameChange.php
Ferdinand Thiessen e0ba4d71b6
chore: add missing Override attribute to OC
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:27 +02:00

33 lines
725 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\Files\Notify;
use OCP\Files\Notify\IChange;
use OCP\Files\Notify\IRenameChange;
class RenameChange extends Change implements IRenameChange {
/**
* @param IChange::ADDED|IChange::REMOVED|IChange::MODIFIED|IChange::RENAMED $type
*/
public function __construct(
int $type,
string $path,
private readonly string $targetPath,
) {
parent::__construct($type, $path);
}
/**
* Get the new path of the renamed file relative to the storage root
*/
#[\Override]
public function getTargetPath(): string {
return $this->targetPath;
}
}