snipe-it/app/Events/CheckoutableCheckedOut.php

33 lines
752 B
PHP
Raw Normal View History

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;
class CheckoutableCheckedOut
2018-07-21 05:01:30 -07:00
{
use Dispatchable, SerializesModels;
public $checkoutable;
2018-07-21 05:01:30 -07:00
public $checkedOutTo;
public $checkedOutBy;
public $note;
2023-08-31 20:12:07 -07:00
public $originalValues;
2018-07-21 05:01:30 -07:00
/**
* Create a new event instance.
*
* @return void
*/
2023-08-31 20:12:07 -07:00
public function __construct($checkoutable, $checkedOutTo, User $checkedOutBy, $note, $originalValues = [])
2018-07-21 05:01:30 -07:00
{
$this->checkoutable = $checkoutable;
2018-07-21 05:01:30 -07:00
$this->checkedOutTo = $checkedOutTo;
$this->checkedOutBy = $checkedOutBy;
$this->note = $note;
2023-08-31 20:12:07 -07:00
$this->originalValues = $originalValues;
2018-07-21 05:01:30 -07:00
}
}