PHP Class Socieboy\Forum\Jobs\Conversations\StartConversation

Inheritance: extends App\Jobs\Job, implements Illuminate\Contracts\Queue\ShouldQueue, use trait Illuminate\Queue\InteractsWithQueue, use trait Illuminate\Queue\SerializesModels
Show file Open project: socieboy/forum

Protected Properties

Property Type Description
$message string
$title string
$topic_id string

Public Methods

Method Description
__construct ( Request $request ) Create a new job instance.
handle ( ConversationRepo $conversationRepo ) : void Execute the job.
prepareDate ( ) : array Prepare array to fill the conversation model.

Protected Methods

Method 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 method

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

authUserIsOwner() protected method

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

handle() public method

Execute the job.
public handle ( ConversationRepo $conversationRepo ) : void
$conversationRepo Socieboy\Forum\Entities\Conversations\ConversationRepo
return void

prepareDate() public method

Prepare array to fill the conversation model.
public prepareDate ( ) : array
return array

Property Details

$message protected property

protected string $message
return string

$title protected property

protected string $title
return string

$topic_id protected property

protected string $topic_id
return string