48 lines
673 B
PHP
48 lines
673 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
class FileApplyEvent extends Event
|
|
{
|
|
/**
|
|
* 文件ID
|
|
*
|
|
* @var array|int
|
|
*/
|
|
public $ids;
|
|
|
|
/**
|
|
* 文件类型
|
|
*
|
|
* @var string
|
|
*/
|
|
public $type;
|
|
|
|
/**
|
|
* 类型ID
|
|
*
|
|
* @var string|int
|
|
*/
|
|
public $typeid;
|
|
|
|
/**
|
|
* 是否覆盖
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $cover;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($ids, $type, $typeid, $cover = false)
|
|
{
|
|
$this->ids = $ids;
|
|
$this->type = $type;
|
|
$this->typeid = $typeid;
|
|
$this->cover = $cover;
|
|
}
|
|
}
|