2018-07-21 05:01:30 -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 CheckoutableCheckedOut
|
2018-07-21 05:01:30 -07:00
|
|
|
{
|
|
|
|
use Dispatchable, SerializesModels;
|
|
|
|
|
2018-09-10 07:40:26 -07:00
|
|
|
public $checkoutable;
|
2018-07-21 05:01:30 -07:00
|
|
|
public $checkedOutTo;
|
2018-07-27 15:05:45 -07:00
|
|
|
public $checkedOutBy;
|
2018-09-10 07:40:26 -07:00
|
|
|
public $note;
|
2018-07-21 05:01:30 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2018-09-10 07:40:26 -07:00
|
|
|
public function __construct($checkoutable, $checkedOutTo, User $checkedOutBy, $note)
|
2018-07-21 05:01:30 -07:00
|
|
|
{
|
2018-09-10 07:40:26 -07:00
|
|
|
$this->checkoutable = $checkoutable;
|
2018-07-21 05:01:30 -07:00
|
|
|
$this->checkedOutTo = $checkedOutTo;
|
2018-07-27 15:05:45 -07:00
|
|
|
$this->checkedOutBy = $checkedOutBy;
|
2021-06-10 13:15:52 -07:00
|
|
|
$this->note = $note;
|
2018-07-21 05:01:30 -07:00
|
|
|
}
|
|
|
|
}
|