PHP Class Socieboy\Forum\Jobs\Replies\PostReply

Inheritance: extends App\Jobs\Job, implements Illuminate\Contracts\Bus\SelfHandling
Afficher le fichier Open project: socieboy/forum

Protected Properties

Свойство Type Description
$conversation_id integer
$message string

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
authUserIsOwner ( $conversation ) : boolean Return true if the auth user is the owner of the conversation where the reply was left

Method Details

__construct() public méthode

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

authUserIsOwner() protected méthode

Return true if the auth user is the owner of the conversation where the reply was left
protected authUserIsOwner ( $conversation ) : boolean
$conversation
Résultat boolean

handle() public méthode

Execute the job.
public handle ( ReplyRepo $replyRepo, Illuminate\Mail\Mailer $mailer ) : void
$replyRepo Socieboy\Forum\Entities\Replies\ReplyRepo
$mailer Illuminate\Mail\Mailer
Résultat void

prepareData() public méthode

Prepare an array to fill the reply model.
public prepareData ( ) : array
Résultat array

sendEmail() public méthode

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

Property Details

$conversation_id protected_oe property

protected int $conversation_id
Résultat integer

$message protected_oe property

protected string $message
Résultat string