mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-20 04:24:23 -08:00
007e8fbdf9
This generalizes the checkout events into the CheckoutableCheckedOut and CheckoutableCheckedIn events.
31 lines
657 B
PHP
31 lines
657 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CheckoutableCheckedIn
|
|
{
|
|
use Dispatchable, SerializesModels;
|
|
|
|
public $checkoutable;
|
|
public $checkedOutTo;
|
|
public $checkedInBy;
|
|
public $note;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note)
|
|
{
|
|
$this->checkoutable = $checkoutable;
|
|
$this->checkedOutTo = $checkedOutTo;
|
|
$this->checkedInBy = $checkedInBy;
|
|
$this->note = $note;
|
|
}
|
|
}
|