class LikeDislikeController extends ApiGuardController (View source)

Class LikeDislikeController.

Methods

__construct( LikeDislikeRepository $likeDislike, LikeDislikeTransformer $likeDislikeTransformer)

LikeDislikeController constructor.

mixed
getLikes($id)

Return likes.

mixed
getLikesCount($id)

Return likes count.

mixed
getDislikes($id)

Return dislikes.

mixed
getDislikesCount($id)

Return dislikes count.

mixed
store( LikeDislikeStoreRequest $request)

Create and store like or dislike.

Details

at line line 52
__construct( LikeDislikeRepository $likeDislike, LikeDislikeTransformer $likeDislikeTransformer)

LikeDislikeController constructor.

Parameters

LikeDislikeRepository $likeDislike
LikeDislikeTransformer $likeDislikeTransformer

at line line 67
mixed getLikes($id)

Return likes.

Parameters

$id

Return Value

mixed

at line line 81
mixed getLikesCount($id)

Return likes count.

Parameters

$id

Return Value

mixed

at line line 95
mixed getDislikes($id)

Return dislikes.

Parameters

$id

Return Value

mixed

at line line 109
mixed getDislikesCount($id)

Return dislikes count.

Parameters

$id

Return Value

mixed

at line line 123
mixed store( LikeDislikeStoreRequest $request)

Create and store like or dislike.

Parameters

LikeDislikeStoreRequest $request

Return Value

mixed