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\Contracts\Queue\ShouldQueue;
9use Illuminate\Mail\Mailable;
10
11class UserForceReactivation extends Mailable implements ShouldQueue
12{
13 private $user;
14 private $reason;
15
16 public function __construct($attributes)
17 {
18 $this->user = $attributes['user'];
19 $this->reason = $attributes['reason'];
20 }
21
22 public function build()
23 {
24 return $this
25 ->text('emails.user_force_reactivation')
26 ->with([
27 'reason' => $this->reason,
28 'user' => $this->user,
29 ])->subject(osu_trans('mail.user_force_reactivation.subject'));
30 }
31}