| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | interface DeleteThreadManagerSecureInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Deletes a thread if the given participant has enough rights to do so. Else throws an exception. |
||
| 26 | * |
||
| 27 | * @param ParticipantInterface $participant The participant who wants to delete a thread |
||
| 28 | * @param ThreadInterface $thread The given thread |
||
| 29 | * |
||
| 30 | * @throws AccessDeniedException if not enough rights to delete the thread. |
||
| 31 | */ |
||
| 32 | public function deleteThread(ParticipantInterface $participant, ThreadInterface $thread); |
||
| 33 | } |
||
| 34 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@returndoc comment to communicate to implementors of these methods what they are expected to return.