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 /core/Db | |
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 'core/Db')
-rw-r--r-- | core/Db/LoginFlowV2Mapper.php | 3 | ||||
-rw-r--r-- | core/Db/ProfileConfigMapper.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/Db/LoginFlowV2Mapper.php b/core/Db/LoginFlowV2Mapper.php index 0e44418e010..feb1bd7b42d 100644 --- a/core/Db/LoginFlowV2Mapper.php +++ b/core/Db/LoginFlowV2Mapper.php @@ -30,6 +30,9 @@ use OCP\AppFramework\Db\QBMapper; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IDBConnection; +/** + * @template-extends QBMapper<LoginFlowV2> + */ class LoginFlowV2Mapper extends QBMapper { private const lifetime = 1200; diff --git a/core/Db/ProfileConfigMapper.php b/core/Db/ProfileConfigMapper.php index a8b1e35f747..8e337523977 100644 --- a/core/Db/ProfileConfigMapper.php +++ b/core/Db/ProfileConfigMapper.php @@ -29,6 +29,9 @@ namespace OC\Core\Db; use OCP\AppFramework\Db\QBMapper; use OCP\IDBConnection; +/** + * @template-extends QBMapper<ProfileConfig> + */ class ProfileConfigMapper extends QBMapper { public function __construct(IDBConnection $db) { parent::__construct($db, 'profile_config', ProfileConfig::class); |