ldc-gen-game-web/app/Mail/JobFailed.php
Noah Lancien 949b7ca13e phpcs
2023-08-24 12:59:51 +00:00

42 lines
838 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class JobFailed extends Mailable
{
use Queueable;
use SerializesModels;
/** @var string */
public $job;
/** @var array */
public $exception;
/**
* Create a new message instance.
*
* @param string $job
* @param array $exception
* @return void
*/
public function __construct(string $job, array $exception)
{
$this->job = $job;
$this->exception = $exception;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject('[JOB FAILED] Une erreur est survenue pendant le job : ' . $this->job)
->view('bo.mails.job-failed');
}
}