0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-24 00:48:38 +00:00
nextcloud_server/lib/public/Files/Lock/OwnerLockedException.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
617 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Files\Lock;
use OCP\Lock\LockedException;
/**
* @since 24.0.0
*/
class OwnerLockedException extends LockedException {
private ILock $lock;
/**
* @since 24.0.0
*/
public function __construct(ILock $lock) {
$this->lock = $lock;
$path = '';
$readablePath = '';
parent::__construct($path, null, $lock->getOwner(), $readablePath);
}
/**
* @since 24.0.0
*/
public function getLock(): ILock {
return $this->lock;
}
}