Fix class uses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
146aedd6fc
commit
5c5a7ab8c6
|
@ -26,8 +26,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace OCA\Forms\Db;
|
||||
|
||||
use OCP\IDBConnection;
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
use OCP\IDBConnection;
|
||||
|
||||
class OptionMapper extends QBMapper {
|
||||
|
||||
|
@ -41,7 +42,7 @@ class OptionMapper extends QBMapper {
|
|||
|
||||
/**
|
||||
* @param int $questionId
|
||||
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
|
||||
* @throws DoesNotExistException if not found
|
||||
* @return Option[]
|
||||
*/
|
||||
|
||||
|
|
|
@ -26,9 +26,10 @@
|
|||
|
||||
namespace OCA\Forms\Db;
|
||||
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
|
||||
class QuestionMapper extends QBMapper {
|
||||
private $optionMapper;
|
||||
|
@ -41,7 +42,7 @@ class QuestionMapper extends QBMapper {
|
|||
|
||||
/**
|
||||
* @param int $formId
|
||||
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
|
||||
* @throws DoesNotExistException if not found
|
||||
* @return Question[]
|
||||
*/
|
||||
|
||||
|
|
|
@ -25,9 +25,10 @@
|
|||
|
||||
namespace OCA\Forms\Db;
|
||||
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||
use OCP\IDBConnection;
|
||||
use OCP\AppFramework\Db\QBMapper;
|
||||
|
||||
class SubmissionMapper extends QBMapper {
|
||||
private $answerMapper;
|
||||
|
@ -45,7 +46,7 @@ class SubmissionMapper extends QBMapper {
|
|||
|
||||
/**
|
||||
* @param int $formId
|
||||
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
|
||||
* @throws DoesNotExistException if not found
|
||||
* @return Submission[]
|
||||
*/
|
||||
public function findByForm(int $formId): array {
|
||||
|
@ -62,7 +63,7 @@ class SubmissionMapper extends QBMapper {
|
|||
|
||||
/**
|
||||
* @param int $formId
|
||||
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
|
||||
* @throws DoesNotExistException if not found
|
||||
* @return array
|
||||
*/
|
||||
public function findParticipantsByForm(int $formId): array {
|
||||
|
|
Loading…
Reference in a new issue