diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-01-12 10:44:40 +0300 |
---|---|---|
committer | max-nextcloud (Rebase PR Action) <max-nextcloud@users.noreply.github.com> | 2022-01-12 11:36:00 +0300 |
commit | 03a74c66542cea60d6e173f42327168b18e2b340 (patch) | |
tree | 9307e87b54dd4a55d272280fd7a31a32109b5d99 | |
parent | 5856b2f3e3c5a7281c0b7b40cf8ba88f1e086bd9 (diff) |
Annotate mapper class template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | lib/Db/DocumentMapper.php | 1 | ||||
-rw-r--r-- | lib/Db/SessionMapper.php | 5 | ||||
-rw-r--r-- | lib/Db/StepMapper.php | 1 |
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); |