PHP 클래스 Socieboy\Forum\Jobs\Conversations\StartConversation

상속: extends App\Jobs\Job, implements Illuminate\Contracts\Queue\ShouldQueue, use trait Illuminate\Queue\InteractsWithQueue, use trait Illuminate\Queue\SerializesModels
파일 보기 프로젝트 열기: socieboy/forum

보호된 프로퍼티들

프로퍼티 타입 설명
$message string
$title string
$topic_id string

공개 메소드들

메소드 설명
__construct ( Request $request ) Create a new job instance.
handle ( ConversationRepo $conversationRepo ) : void Execute the job.
prepareDate ( ) : array Prepare array to fill the conversation model.

보호된 메소드들

메소드 설명
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 ( ConversationRepo $conversationRepo ) : void
$conversationRepo Socieboy\Forum\Entities\Conversations\ConversationRepo
리턴 void

prepareDate() 공개 메소드

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

프로퍼티 상세

$message 보호되어 있는 프로퍼티

protected string $message
리턴 string

$title 보호되어 있는 프로퍼티

protected string $title
리턴 string

$topic_id 보호되어 있는 프로퍼티

protected string $topic_id
리턴 string