. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Laravel\Passport\Client; /** * Class OAuthTokenCreatedMail * * @codeCoverageIgnore */ class OAuthTokenCreatedMail extends Mailable { use Queueable, SerializesModels; /** @var Client The client */ public $client; /** @var string Email address of admin */ public $email; /** @var string IP address of admin */ public $ipAddress; /** * OAuthTokenCreatedMail constructor. * * @param string $email * @param string $ipAddress * @param Client $client */ public function __construct(string $email, string $ipAddress, Client $client) { $this->email = $email; $this->ipAddress = $ipAddress; $this->client = $client; } /** * Build the message. * * @return $this */ public function build(): self { return $this->view('v1.emails.oauth-client-created-html')->text('v1.emails.oauth-client-created-text') ->subject((string) trans('email.oauth_created_subject')); } }