overtrue /
laravel-follow
| 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
Loading history...
|
|||
| 25 | $this->followingId = $relation->following_id; |
||
|
0 ignored issues
–
show
|
|||
| 26 | } |
||
| 27 | } |
||
| 28 |