프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public __construct ( Owl\Repositories\CommentRepositoryInterface $commentRepo ) | ||
$commentRepo | Owl\Repositories\CommentRepositoryInterface |
public createComment ( $cmt ) : Illuminate\Database\Eloquent\Model | ||
리턴 | Illuminate\Database\Eloquent\Model |
public getCommentById ( $id ) : Illuminate\Database\Eloquent\Model | ||
$id | int | |
리턴 | Illuminate\Database\Eloquent\Model |
public updateComment ( $id, $body ) : Illuminate\Database\Eloquent\Model | ||
$id | int | |
$body | string | |
리턴 | Illuminate\Database\Eloquent\Model |