mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
6b05106dcb
Since we are really checking out a license seat instead of the whole license, we operate the checkin/checkout on the license seat instance.
34 lines
753 B
PHP
34 lines
753 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Actionlog;
|
|
use App\Models\License;
|
|
use App\Models\LicenseSeat;
|
|
use App\Models\User;
|
|
use Illuminate\Broadcasting\Channel;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class LicenseSeatCheckedOut
|
|
{
|
|
use Dispatchable, SerializesModels;
|
|
|
|
public $licenseSeat;
|
|
public $checkedOutTo;
|
|
public $logEntry;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $checkedOutBy, $note)
|
|
{
|
|
$this->licenseSeat = $licenseSeat;
|
|
$this->checkedOutTo = $checkedOutTo;
|
|
$this->checkedOutBy = $checkedOutBy;
|
|
$this->note = $note;
|
|
}
|
|
}
|