snipe-it/app/Events/AssetCheckedIn.php

34 lines
708 B
PHP
Raw Normal View History

2018-07-21 05:00:17 -07:00
<?php
namespace App\Events;
use App\Models\Actionlog;
use App\Models\Asset;
use App\Models\User;
use Illuminate\Broadcasting\Channel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class AssetCheckedIn
{
use Dispatchable, SerializesModels;
public $asset;
public $checkedOutTo;
public $checkedInBy;
public $note;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Asset $asset, $checkedOutTo, User $checkedInBy, $note)
{
$this->asset = $asset;
$this->checkedOutTo = $checkedOutTo;
$this->checkedInBy = $checkedInBy;
$this->note = $note;
}
}