@@ -89,7 +89,7 @@ |
||
| 89 | 89 | /** |
| 90 | 90 | * Get current user permissions for a board |
| 91 | 91 | * |
| 92 | - * @param Board|Entity $board |
|
| 92 | + * @param Board $board |
|
| 93 | 93 | * @return array|bool |
| 94 | 94 | * @internal param $boardId |
| 95 | 95 | */ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * Check if user exists before assigning it to a card |
| 64 | 64 | * |
| 65 | 65 | * @param Entity $entity |
| 66 | - * @return null|Entity |
|
| 66 | + * @return AssignedUsers|null |
|
| 67 | 67 | */ |
| 68 | 68 | public function insert(Entity $entity) { |
| 69 | 69 | $user = $this->userManager->get($entity->getParticipant()); |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | * @param $cardId |
| 164 | 164 | * @param $attachmentId |
| 165 | 165 | * @param $request |
| 166 | - * @return mixed |
|
| 166 | + * @return \OCP\AppFramework\Db\Entity |
|
| 167 | 167 | * @throws \OCA\Deck\NoPermissionException |
| 168 | 168 | * @throws \OCP\AppFramework\Db\DoesNotExistException |
| 169 | 169 | * @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException |
@@ -136,6 +136,9 @@ |
||
| 136 | 136 | return parent::delete($entity); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | + /** |
|
| 140 | + * @param integer $stackId |
|
| 141 | + */ |
|
| 139 | 142 | public function deleteByStack($stackId) { |
| 140 | 143 | $cards = $this->findAllByStack($stackId); |
| 141 | 144 | foreach ($cards as $card) { |
@@ -94,6 +94,9 @@ |
||
| 94 | 94 | $this->cardMapper->markNotified($card); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @param \OCA\Deck\Db\Card $card |
|
| 99 | + */ |
|
| 97 | 100 | public function sendCardAssigned($card, $userId) { |
| 98 | 101 | $boardId = $this->cardMapper->findBoardId($card->getId()); |
| 99 | 102 | $board = $this->getBoard($boardId); |