PHP Класс Socieboy\Forum\Jobs\Replies\PostReply

Наследование: extends App\Jobs\Job, implements Illuminate\Contracts\Bus\SelfHandling
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$conversation_id integer
$message string

Открытые методы

Метод Описание
__construct ( Request $request ) Create a new job instance.
handle ( ReplyRepo $replyRepo, Illuminate\Mail\Mailer $mailer ) : void Execute the job.
prepareData ( ) : array Prepare an array to fill the reply model.
sendEmail ( Illuminate\Mail\Mailer $mailer, Reply $reply ) Send an email to the conversation owner.

Защищенные методы

Метод Описание
authUserIsOwner ( $conversation ) : boolean Return true if the auth user is the owner of the conversation where the reply was left

Описание методов

__construct() публичный Метод

Create a new job instance.
public __construct ( Request $request )
$request Request

authUserIsOwner() защищенный Метод

Return true if the auth user is the owner of the conversation where the reply was left
protected authUserIsOwner ( $conversation ) : boolean
$conversation
Результат boolean

handle() публичный Метод

Execute the job.
public handle ( ReplyRepo $replyRepo, Illuminate\Mail\Mailer $mailer ) : void
$replyRepo Socieboy\Forum\Entities\Replies\ReplyRepo
$mailer Illuminate\Mail\Mailer
Результат void

prepareData() публичный Метод

Prepare an array to fill the reply model.
public prepareData ( ) : array
Результат array

sendEmail() публичный Метод

Send an email to the conversation owner.
public sendEmail ( Illuminate\Mail\Mailer $mailer, Reply $reply )
$mailer Illuminate\Mail\Mailer
$reply Socieboy\Forum\Entities\Replies\Reply

Описание свойств

$conversation_id защищенное свойство

protected int $conversation_id
Результат integer

$message защищенное свойство

protected string $message
Результат string