mirror of
https://github.com/flarum/core.git
synced 2025-10-18 18:26:07 +02:00
41 lines
803 B
PHP
41 lines
803 B
PHP
<?php
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Events;
|
|
|
|
use Flarum\Core\Users\User;
|
|
|
|
class UserEmailChangeWasRequested
|
|
{
|
|
/**
|
|
* The user who requested the email change.
|
|
*
|
|
* @var User
|
|
*/
|
|
public $user;
|
|
|
|
/**
|
|
* The email they requested to change to.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $email;
|
|
|
|
/**
|
|
* @param User $user The user who requested the email change.
|
|
* @param string $email The email they requested to change to.
|
|
*/
|
|
public function __construct(User $user, $email)
|
|
{
|
|
$this->user = $user;
|
|
$this->email = $email;
|
|
}
|
|
}
|