diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-03-31 09:28:22 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-04-07 09:49:42 +0200 |
commit | b153340b6292c0790666e0542677bcf47f2e9b59 (patch) | |
tree | b13fb2b10cc38833a2a05ec44a410188a571c6a6 /apps/files/lib | |
parent | 012624743917cf9388f2abd33760a50d83d497e9 (diff) | |
download | nextcloud-server-b153340b6292c0790666e0542677bcf47f2e9b59.tar.gz nextcloud-server-b153340b6292c0790666e0542677bcf47f2e9b59.zip |
Add type hints for mappers
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Db/OpenLocalEditorMapper.php | 3 | ||||
-rw-r--r-- | apps/files/lib/Db/TransferOwnershipMapper.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/lib/Db/OpenLocalEditorMapper.php b/apps/files/lib/Db/OpenLocalEditorMapper.php index 71573264c74..00988adc9cc 100644 --- a/apps/files/lib/Db/OpenLocalEditorMapper.php +++ b/apps/files/lib/Db/OpenLocalEditorMapper.php @@ -32,6 +32,9 @@ use OCP\AppFramework\Db\QBMapper; use OCP\DB\Exception; use OCP\IDBConnection; +/** + * @template-extends QBMapper<OpenLocalEditor> + */ class OpenLocalEditorMapper extends QBMapper { public function __construct(IDBConnection $db) { parent::__construct($db, 'open_local_editor', OpenLocalEditor::class); diff --git a/apps/files/lib/Db/TransferOwnershipMapper.php b/apps/files/lib/Db/TransferOwnershipMapper.php index f55f9e733f9..e195a5182a0 100644 --- a/apps/files/lib/Db/TransferOwnershipMapper.php +++ b/apps/files/lib/Db/TransferOwnershipMapper.php @@ -29,6 +29,9 @@ namespace OCA\Files\Db; use OCP\AppFramework\Db\QBMapper; use OCP\IDBConnection; +/** + * @template-extends QBMapper<TransferOwnership> + */ class TransferOwnershipMapper extends QBMapper { public function __construct(IDBConnection $db) { parent::__construct($db, 'user_transfer_owner', TransferOwnership::class); |