Total Complexity | 1 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ModelWasLiked |
||
11 | { |
||
12 | /** |
||
13 | * The liked model. |
||
14 | * |
||
15 | * @var \Turahe\Likeable\Contracts\Likeable |
||
16 | */ |
||
17 | public $model; |
||
18 | |||
19 | /** |
||
20 | * User id who liked 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) |
||
39 |