| 
									
										
										
										
											2023-07-19 18:03:05 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace BookStack\Activity\Notifications\Handlers; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-15 21:39:39 +08:00
										 |  |  | use BookStack\Activity\Models\Activity; | 
					
						
							| 
									
										
										
										
											2023-07-19 18:03:05 +08:00
										 |  |  | use BookStack\Activity\Models\Loggable; | 
					
						
							| 
									
										
										
										
											2023-08-04 19:27:29 +08:00
										 |  |  | use BookStack\Users\Models\User; | 
					
						
							| 
									
										
										
										
											2023-07-19 18:03:05 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | interface NotificationHandler | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Run this handler. | 
					
						
							| 
									
										
										
										
											2023-08-15 21:39:39 +08:00
										 |  |  |      * Provides the activity, related activity detail/model | 
					
						
							| 
									
										
										
										
											2023-08-04 19:27:29 +08:00
										 |  |  |      * along with the user that triggered the activity. | 
					
						
							| 
									
										
										
										
											2023-07-19 18:03:05 +08:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2023-08-15 21:39:39 +08:00
										 |  |  |     public function handle(Activity $activity, string|Loggable $detail, User $user): void; | 
					
						
							| 
									
										
										
										
											2023-07-19 18:03:05 +08:00
										 |  |  | } |