2018-07-21 05:00:17 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2018-09-10 07:40:26 -07:00
|
|
|
class CheckoutableCheckedIn
|
2018-07-21 05:00:17 -07:00
|
|
|
{
|
|
|
|
use Dispatchable, SerializesModels;
|
|
|
|
|
2018-09-10 07:40:26 -07:00
|
|
|
public $checkoutable;
|
2018-07-21 05:00:17 -07:00
|
|
|
public $checkedOutTo;
|
|
|
|
public $checkedInBy;
|
|
|
|
public $note;
|
2018-09-10 07:40:26 -07:00
|
|
|
|
2018-07-21 05:00:17 -07:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2018-09-10 07:40:26 -07:00
|
|
|
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note)
|
2018-07-21 05:00:17 -07:00
|
|
|
{
|
2018-09-10 07:40:26 -07:00
|
|
|
$this->checkoutable = $checkoutable;
|
2018-07-21 05:00:17 -07:00
|
|
|
$this->checkedOutTo = $checkedOutTo;
|
|
|
|
$this->checkedInBy = $checkedInBy;
|
|
|
|
$this->note = $note;
|
|
|
|
}
|
|
|
|
}
|