1 | <?php |
||
24 | trait QueueTrait |
||
25 | { |
||
26 | /** |
||
27 | * Insert add comment to message queue. |
||
28 | * |
||
29 | * @param Comment $comment |
||
30 | * @param int|User $changeBy |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | 8 | public function queueAdd(Comment $comment, $changeBy) |
|
43 | |||
44 | /** |
||
45 | * Insert update comment to message queue. |
||
46 | * |
||
47 | * @param Comment $comment |
||
48 | * @param int|User $changeBy |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | 1 | public function queueUpdate(Comment $comment, $changeBy) |
|
61 | |||
62 | /** |
||
63 | * Insert delete comment to message queue. |
||
64 | * |
||
65 | * @param Comment $comment |
||
66 | * @param int|User $changeBy |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | 1 | public function queueDelete(Comment $comment, $changeBy) |
|
79 | } |
||
80 |