mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-19 04:49:30 +00:00
39 lines
697 B
PHP
39 lines
697 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* UserRegistration.php
|
||
|
|
* Copyright (C) 2016 Sander Dorigo
|
||
|
|
*
|
||
|
|
* This software may be modified and distributed under the terms
|
||
|
|
* of the MIT license. See the LICENSE file for details.
|
||
|
|
*/
|
||
|
|
|
||
|
|
namespace FireflyIII\Events;
|
||
|
|
|
||
|
|
use FireflyIII\User;
|
||
|
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class UserRegistration
|
||
|
|
*
|
||
|
|
* @package FireflyIII\Events
|
||
|
|
*/
|
||
|
|
class UserRegistration extends Event
|
||
|
|
{
|
||
|
|
use SerializesModels;
|
||
|
|
|
||
|
|
public $ip;
|
||
|
|
public $user;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a new event instance.
|
||
|
|
*
|
||
|
|
* @param User $user
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function __construct(User $user, string $ip)
|
||
|
|
{
|
||
|
|
$this->user = $user;
|
||
|
|
$this->ip = $ip;
|
||
|
|
}
|
||
|
|
}
|