Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
28 | interface NewMessageManagerInterface |
||
29 | { |
||
30 | /** |
||
31 | * Saves a new thread to the storage engine. |
||
32 | * |
||
33 | * @param MessageInterface $message |
||
34 | */ |
||
35 | public function saveNewThread(MessageInterface $message); |
||
36 | |||
37 | /** |
||
38 | * Saves a new reply to the storage engine. |
||
39 | * |
||
40 | * @param MessageInterface $message |
||
41 | */ |
||
42 | public function saveNewReply(MessageInterface $message); |
||
43 | } |
||
44 |
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
@return
doc comment to communicate to implementors of these methods what they are expected to return.