nextcloud/lib/private/Files/Notify/Change.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

42 lines
890 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;
class Change implements IChange {
/**
* @param IChange::ADDED|IChange::REMOVED|IChange::MODIFIED|IChange::RENAMED $type
*/
public function __construct(
private readonly int $type,
private readonly string $path,
) {
}
/**
* Get the type of the change
*
* @return IChange::ADDED|IChange::REMOVED|IChange::MODIFIED|IChange::RENAMED
*/
#[\Override]
public function getType(): int {
return $this->type;
}
/**
* Get the path of the file that was changed relative to the root of the storage
*
* Note, for rename changes this path is the old path for the file
*/
#[\Override]
public function getPath(): string {
return $this->path;
}
}