Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-01-12 10:44:40 +0300
committermax-nextcloud (Rebase PR Action) <max-nextcloud@users.noreply.github.com>2022-01-12 11:36:00 +0300
commit03a74c66542cea60d6e173f42327168b18e2b340 (patch)
tree9307e87b54dd4a55d272280fd7a31a32109b5d99 /lib
parent5856b2f3e3c5a7281c0b7b40cf8ba88f1e086bd9 (diff)
Annotate mapper class template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/DocumentMapper.php1
-rw-r--r--lib/Db/SessionMapper.php5
-rw-r--r--lib/Db/StepMapper.php1
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/Db/DocumentMapper.php b/lib/Db/DocumentMapper.php
index b35cbbb9f..9449bed44 100644
--- a/lib/Db/DocumentMapper.php
+++ b/lib/Db/DocumentMapper.php
@@ -28,6 +28,7 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
+/** @extends QBMapper<Document> */
class DocumentMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'text_documents', Document::class);
diff --git a/lib/Db/SessionMapper.php b/lib/Db/SessionMapper.php
index 4849e9e6a..da264724c 100644
--- a/lib/Db/SessionMapper.php
+++ b/lib/Db/SessionMapper.php
@@ -29,10 +29,7 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
-/**
- * @method Session update(Session $session)
- * @method Session insert(Session $session)
- */
+/** @extends QBMapper<Session> */
class SessionMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'text_sessions', Session::class);
diff --git a/lib/Db/StepMapper.php b/lib/Db/StepMapper.php
index 32a6ea9a5..f0148efff 100644
--- a/lib/Db/StepMapper.php
+++ b/lib/Db/StepMapper.php
@@ -27,6 +27,7 @@ use OCP\AppFramework\Db\QBMapper;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
+/** @extends QBMapper<Step> */
class StepMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'text_steps', Step::class);