Event   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 19
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Overtrue\LaravelFollow\Events;
4
5
use Overtrue\LaravelFollow\UserFollower;
6
7
class Event
8
{
9
    /**
10
     * @var int|string
11
     */
12
    public $followingId;
13
14
    /**
15
     * @var int|string
16
     */
17
    public $followerId;
18
19
    protected UserFollower $relation;
20
21
    public function __construct(UserFollower $relation)
22
    {
23
        $this->relation = $relation;
24
        $this->followerId = $relation->follower_id;
0 ignored issues
show
Bug introduced by
The property follower_id does not exist on Overtrue\LaravelFollow\UserFollower. Did you mean follower_id;?
Loading history...
25
        $this->followingId = $relation->following_id;
0 ignored issues
show
Bug introduced by
The property following_id does not exist on Overtrue\LaravelFollow\UserFollower. Did you mean following_id;?
Loading history...
26
    }
27
}
28