1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Mail;
7
8use Illuminate\Bus\Queueable;
9use Illuminate\Contracts\Queue\ShouldQueue;
10use Illuminate\Mail\Mailable;
11use Illuminate\Queue\SerializesModels;
12
13class UserEmailUpdated extends Mailable implements ShouldQueue
14{
15 use Queueable, SerializesModels;
16
17 public $user;
18
19 /**
20 * Create a new message instance.
21 *
22 * @return void
23 */
24 public function __construct($user)
25 {
26 $this->user = $user;
27 }
28
29 /**
30 * Build the message.
31 *
32 * @return $this
33 */
34 public function build()
35 {
36 return $this
37 ->text('emails.user_email_updated')
38 ->subject(osu_trans('mail.user_email_updated.subject'));
39 }
40}