PHP 클래스 Owl\Services\CommentService

상속: extends Service
파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$commentRepo

공개 메소드들

메소드 설명
__construct ( Owl\Repositories\CommentRepositoryInterface $commentRepo )
createComment ( $cmt ) : Illuminate\Database\Eloquent\Model Create a new comment.
deleteComment ( $id ) : boolean Delete a comment.
getCommentById ( $id ) : Illuminate\Database\Eloquent\Model Get a comment by comment id.
updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model Update a comment's body.

메소드 상세

__construct() 공개 메소드

public __construct ( Owl\Repositories\CommentRepositoryInterface $commentRepo )
$commentRepo Owl\Repositories\CommentRepositoryInterface

createComment() 공개 메소드

Create a new comment.
public createComment ( $cmt ) : Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model

deleteComment() 공개 메소드

Delete a comment.
public deleteComment ( $id ) : boolean
$id int
리턴 boolean

getCommentById() 공개 메소드

Get a comment by comment id.
public getCommentById ( $id ) : Illuminate\Database\Eloquent\Model
$id int
리턴 Illuminate\Database\Eloquent\Model

updateComment() 공개 메소드

Update a comment's body.
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model
$id int
$body string
리턴 Illuminate\Database\Eloquent\Model

프로퍼티 상세

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

protected $commentRepo