| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2024-12-21 12:27:07 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2025-08-01 13:48:32 +02:00
										 |  |  |  * UserGroupChangedPrimaryCurrency.php | 
					
						
							| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  |  * Copyright (c) 2024 james@firefly-iii.org. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This file is part of Firefly III (https://github.com/firefly-iii). | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU Affero General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation, either version 3 of the | 
					
						
							|  |  |  |  * License, or (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU Affero General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU Affero General Public License | 
					
						
							|  |  |  |  * along with this program.  If not, see https://www.gnu.org/licenses/. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | declare(strict_types=1); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace FireflyIII\Events\Preferences; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use FireflyIII\Events\Event; | 
					
						
							|  |  |  | use FireflyIII\Models\UserGroup; | 
					
						
							|  |  |  | use Illuminate\Queue\SerializesModels; | 
					
						
							|  |  |  | use Illuminate\Support\Facades\Log; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-01 15:30:45 +02:00
										 |  |  | class UserGroupChangedPrimaryCurrency extends Event | 
					
						
							| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  | { | 
					
						
							|  |  |  |     use SerializesModels; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-04 12:57:14 +02:00
										 |  |  |     public function __construct(public UserGroup $userGroup) | 
					
						
							| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  |     { | 
					
						
							| 
									
										
										
										
											2025-08-08 20:18:04 +02:00
										 |  |  |         Log::debug('User group changed primary currency.'); | 
					
						
							| 
									
										
										
										
											2024-12-21 07:12:11 +01:00
										 |  |  |     } | 
					
						
							|  |  |  | } |