Files
nextcloud-server-mirror/apps/files/lib/Db/TransferOwnershipMapper.php
2026-09-10 11:03:19 +02:00

28 lines
596 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files\Db;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\ORM\Repository;
/**
* @template-extends Repository<TransferOwnership>
*/
final class TransferOwnershipMapper extends Repository {
public const string entityClass = TransferOwnership::class;
/**
* @throws DoesNotExistException
*/
public function getById(int $id): TransferOwnership {
return $this->findOneBy(['id' => $id]);
}
}