PHP Класс Owl\Repositories\Eloquent\CommentRepository

Наследование: implements Owl\Repositories\CommentRepositoryInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$comment

Открытые методы

Метод Описание
__construct ( Comment $comment )
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 ( Comment $comment )
$comment Owl\Repositories\Eloquent\Models\Comment

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

Описание свойств

$comment защищенное свойство

protected $comment