phpvms/app/Events/UserStateChanged.php

22 lines
351 B
PHP
Raw Normal View History

2017-12-03 00:55:17 +08:00
<?php
namespace App\Events;
use App\Contracts\Event;
2017-12-03 00:55:17 +08:00
use App\Models\User;
/**
* Event triggered when a user's state changes
*/
class UserStateChanged extends Event
2017-12-03 00:55:17 +08:00
{
2018-08-27 00:40:04 +08:00
public $old_state;
public $user;
2017-12-03 00:55:17 +08:00
public function __construct(User $user, $old_state)
2017-12-03 00:55:17 +08:00
{
$this->old_state = $old_state;
2017-12-03 00:55:17 +08:00
$this->user = $user;
}
}