mirror of
https://github.com/nextcloud/server.git
synced 2026-10-31 18:15:57 +01:00
28 lines
596 B
PHP
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]);
|
|
}
|
|
}
|