ModelWasUndisliked   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 27
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Turahe\Likeable\Events;
4
5
use Turahe\Likeable\Contracts\Likeable as LikeableContract;
6
7
/**
8
 * Class ModelWasUndisliked.
9
 */
10
class ModelWasUndisliked
11
{
12
    /**
13
     * The un disliked model.
14
     *
15
     * @var \Turahe\Likeable\Contracts\Likeable
16
     */
17
    public $model;
18
19
    /**
20
     * User id who unliked model.
21
     *
22
     * @var int
23
     */
24
    public $likerId;
25
26
    /**
27
     * Create a new event instance.
28
     *
29
     * @param \Turahe\Likeable\Contracts\Likeable $likeable
30
     * @param int $likerId
31
     * @return void
32
     */
33
    public function __construct(LikeableContract $likeable, $likerId)
34
    {
35
        $this->model = $likeable;
36
        $this->likerId = $likerId;
37
    }
38
}
39