. */ declare(strict_types=1); namespace FireflyIII\Events; use FireflyIII\User; use Illuminate\Queue\SerializesModels; /** * Class UserChangedEmail. * * @codeCoverageIgnore */ class UserChangedEmail extends Event { use SerializesModels; /** @var string The user's IP address */ public $ipAddress; /** @var string The user's new email address */ public $newEmail; /** @var string The user's old email address */ public $oldEmail; /** @var User The user itself */ public $user; /** * UserChangedEmail constructor. * * @param User $user * @param string $newEmail * @param string $oldEmail * @param string $ipAddress */ public function __construct(User $user, string $newEmail, string $oldEmail, string $ipAddress) { $this->user = $user; $this->ipAddress = $ipAddress; $this->oldEmail = $oldEmail; $this->newEmail = $newEmail; } }