snipe-it/app/Events/ComponentCheckedOut.php

32 lines
705 B
PHP
Raw Normal View History

2018-07-21 05:01:30 -07:00
<?php
namespace App\Events;
use App\Models\Component;
use App\Models\User;
use Illuminate\Broadcasting\Channel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ComponentCheckedOut
{
use Dispatchable, SerializesModels;
public $component;
public $checkedOutTo;
public $checkedOutBy;
2018-07-21 05:01:30 -07:00
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Component $component, $checkedOutTo, $quantity, User $checkedOutBy)
2018-07-21 05:01:30 -07:00
{
$this->component = $component;
$this->checkedOutTo = $checkedOutTo;
$this->quantity = $quantity;
$this->checkedOutBy = $checkedOutBy;
2018-07-21 05:01:30 -07:00
}
}